Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!mnetor!mot!waycott From: waycott@mot.UUCP Newsgroups: net.micro.amiga Subject: Re: ESC sequences to turn on NLQ (near letter quality) printer mode Message-ID: <540@mot.UUCP> Date: Thu, 19-Jun-86 21:42:42 EDT Article-I.D.: mot.540 Posted: Thu Jun 19 21:42:42 1986 Date-Received: Fri, 20-Jun-86 01:40:17 EDT References: <533@mot.UUCP> <418@cbmvax.cbmvax.cbm.UUCP> Distribution: net Organization: Motorola Microsystems, Tempe, AZ 85282 Lines: 37 > In article <533@mot.UUCP> waycott@mot.UUCP (John Waycott) writes: > > (actually Bob Leivian -- a guest on Johns account) > >I am trying to send an ESC sequence to set up letter qual mode > >when I send the sequence specified in ROM man page 3-199 > >that is [2"z it just prints the z and stays in draft mode. > >What am I doing wrong? > > I use prt: because LPT1: (used by LPRINT) eats initial sequences. Aha, the line eater strikes again. Thanks for the hint Carolyn I was uing Aztec C of the form: fh = fopen("prt:", "w"); fputs("\x1b[2\"z", fh); but I found out that if I use: fputs("some data for the line eater\x1b[2\"z", fh); it worked! I did some experimenting and found out that nulls didn't satisfy the old line eaters (or should I say ESC eater) appetite but linefeeds did. So be warned -- and Amiga printer driver guru's take note! BTW my printer program now works and if enough people are interested I can post it. It prints multiple files in background with wildcard selection and options for line numbers, headers, non-printing chars and other features. For example: pr -h *.c *.h -l manpage will print all c and h files with headers and the manpage in letter quality mode -- thanks for the help and send mail to Bob Leivian guest on mot!waycott -- John Waycott, Motorola Microsystems, Tempe, AZ, (602) 438-3164 {seismo!terak, trwrb!flkvax, utzoo!mnetor, ihnp4, attunix}!mot!waycott oakhill!mot!waycott@ut-sally.ARPA