[LCP]Another printing issue

Francisco Hallo fhallo at server.epn.edu.ec
Sat Oct 20 09:22:08 UTC 2001


Hi there,



How do I send control characters to the printer?. My printer has the
ASCII control code  SI  to select condensed mode, but sending
....
prnt=open("/dev/lp1",O_WRONLY);
.....
write(prnt,"SI",2);
.....

is not correct ,  on the other hand SI is not a valid  escape sequence,
could any body  give me a hint?, I want to use some other control codes
like performing 2/180-inch line feed advances as needed.

Best regards,


Francisco






More information about the linuxCprogramming mailing list