Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!oliveb!tymix!tardis!jms From: jms@tardis.Tymnet.COM (Joe Smith) Newsgroups: comp.sys.amiga Subject: Re: Star printer driver wanted Summary: It works if you talk to it properly Keywords: ANSI escape sequences Message-ID: <465@tardis.Tymnet.COM> Date: 27 Jul 89 07:54:56 GMT References: <588@prles2.UUCP> Reply-To: jms@tardis.Tymnet.COM (Joe Smith) Organization: McDonnell Douglas Field Service Co, San Jose CA Lines: 25 [I've seen other replies to this request without providing details] In article <588@prles2.UUCP> hens@apolloway.prl.philips.nl (Patrick Hens (44014)) writes: >But my problem is the usage of the printer escape codes: an example: >when I use the command LPRINT CHR$(27);"4" in AmigaBasic my printer >should be set up for italic characters as described in the 'Parallel >Interface Cartridge For NL-10'-manual. You are looking at the wrong set of escape sequences. Forget about the ones in the NL-10 manual, you need to use the ANSI X3.64 style commands. (They're in Appendix-D of the Introduction to the Commodore Amiga 2000 manual.) For example: 10 LPRINT CHR$(27);"[0mNormal" 20 LPRINT CHR$(27);"[3mItalic";CHR$(27);"[23m" 30 LPRINT CHR$(27);"[4mUnderline";CHR$(27);"[24m" 40 LPRINT CHR$(27);"[1mBold";CHR$(27);"[21m" AmigaBASIC sends CHR$(27);"[3m" to the NL-10 printer driver, which translates it to CHR$(27);"4" on its way to the printer. -- Joe Smith (408)922-6220 | SMTP: JMS@F74.TYMNET.COM or jms@tymix.tymnet.com McDonnell Douglas FSCO | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms PO Box 49019, MS-D21 | PDP-10 support: My car's license plate is "POPJ P," San Jose, CA 95161-9019 | narrator.device: "I didn't say that, my Amiga did!"