W8SDZ@SIMTEL20.ARPA.UUCP (03/22/87)
Now available from SIMTEL20... Filename Type Bytes CRC Directory PD:<CPM.WSTAR> ANYCODE2.LBR.1 BINARY 10368 7AA3H Despite its relative age, WordStar remains a popular word processing tool, and it is still one of the most powerful word processors available. You can install WordStar to use virtually all of the features of modern daisywheel printers to produce professional printed documents of exceptional quality. You can also install WordStar to take advantage of many of the features of a sophisticated dot matrix printer. But there just aren't enough WordStar codes available to let you use everything a dot matrix printer can do. It would be convenient if you could simply enter the control characters you want into the file the same way you enter codes that WordStar knows about, but it isn't that simple. WordStar filters your document as it prints it, and any nonprintable characters that WordStar doesn't recognize are rejected. The original ANYCODE was written for the Osborne by Doug Hurst, to circumvent this limitation. Its function is to unlock all of the features of a dot-matrix printer by providing a way to fool WordStar into transmitting those control characters. Doug's program is a patch that is inserted logically between WordStar and the CP/M PRIMARY list device - if you're not using the primary list device, this patch isn't guaranteed to work. The version under discussion here, written by Dick Binder and named ANYCODE2, fixes a couple of limitations in the original ANYCODE. What ANYCODE2 does is to examine the printed stream, looking for either of two characters that are set aside for it to use as lead-in characters. A "lead-in" character signifies that a special character sequence follows, telling ANYCODE2 to begin processing. Detection of one of these characters will cause ANYCODE2 to transmit a control character to the printer. The control character is constructed from the next two characters in the file. ANYCODE2 is in 8080 code and can be assembled and installed into WS using DDT under CP/M. It goes into a special patch area provided and does not increase the size of the WS.COM file. Cheers, Dick Binder (The Stainless Steel Rat) DEC Enet: ASD::BINDER UUCP: { decvax, allegra, ucbvax... }!decwrl!asd.dec.com!binder ARPA: binder%asd.DEC@decwrl.ARPA