delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/24/21:55:17

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: <Pine DOT SUN DOT 3 DOT 91 DOT 990622091851 DOT 25569A-100000 AT is>
X-Mailer: Juno 1.49
X-Juno-Line-Breaks: 0,2,4-13,15-20,22-26,28-44
From: Vince McCarthy <vmccar AT juno DOT com>
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
<eliz AT is DOT elta DOT co DOT il> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019