Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcvax!unido!laura!trillian.irb!st From: st%trillian.irb@unido.uucp (Stefan Timphus) Newsgroups: comp.lang.pascal Subject: Printer control with Turbo Message-ID: <1474@laura.UUCP> Date: 13 Jul 89 20:06:15 GMT Sender: news@laura.UUCP Reply-To: st%trillian.irb@unido.UUCP (Stefan Timphus) Organization: Universitaet Dortmund Lines: 17 A while ago I asked how I could send Escape-codes to the printer, but nobody could really answer that. Now while testing the same for Turbo-C I found the solution (at least for my printer). This doesn't work : T-Pascal : write(lst,#27,'G'); write(lst,chr(27),'G'); T-C : fprintf(stdprn,"%cG",27); But try this : T-Pascal : write(lst,chr($1b),'G'); T-C : printf(stdprn,"\x1bG"); fprintf(stdprn("%xG",0x1b); (also works with octals) I hope this is interesting for some of you. Stefan st%trillian.irb@unido.UUCP