To: djgpp AT delorie DOT com Cc: vmccar AT juno DOT com, djgpp AT delorie DOT com Subject: Re: your mail about printers Message-ID: <19990624.185520.10271.0.vmccar@juno.com> References: X-Mailer: Juno 1.49 X-Juno-Line-Breaks: 0,2,4-13,15-20,22-26,28-44 From: Vince McCarthy Date: Thu, 24 Jun 1999 21:54:37 EDT Reply-To: djgpp AT delorie DOT com Thank you again Eli I got the printer worling fairly well but I still am having trouble with spacing. I have tried several combinations but had no luck. I am trying to set the spacing for different size fonts, but cannot get the printer to take them. the below commands are both decimal and hex. n/72 inch paper spacing. Name: ESC A n Dec. 27 65 n Hex. 1B 41 n fprintf(stdprn, "\x1B\x41"); Its the n part of the command that throws me. I have tried %i, %c, %h . example: fprintf(stdprn, "%i" "SeventySecond"); The n spacing in decimal goes from 0 to 255. Again I would appreciate any help you could give me on this Thank you Vince McCarthy. On Tue, 22 Jun 1999 09:19:37 +0300 (IDT) Eli Zaretskii writes: > >On Mon, 21 Jun 1999, Vince McCarthy wrote: > >> When I set an operation such as proportional printing with a >0x01 >> It requires a hex 0x00 to release the proportional printing, I >cannot >> get the printer to release the proportional printing unless I >substitute >> an 0xbd value for the 0x00 value. > >That's because you send the binary zero as part of a string. Strings >in C are terminated by a zero, so fprintf simply ignores the zero >byte. You need to produce it like this: > > fprintf (stdprn, "%c", '\0'); ___________________________________________________________________ Get the Internet just the way you want it. Free software, free e-mail, and free Internet access for a month! Try Juno Web: http://dl.www.juno.com/dynoget/tagj.