TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Frank Adam
from: Paul Edwards
date: 1996-02-15 22:19:50
subject: Epson code

FA> If anyone cares, paper eject is: fprintf(stdprn,"%c%cR",27,25);
FA> definately not ,'27','25' :)

You might find the code nicer as "\x1b\x19R".  Then again,
you might not.  I prefer the latter form normally, but it can
get a bit nasty if you had wanted say 27, 25, 'E'.  You can't
go "\x1b\x19E" because the 19E looks like a single hex number.
I'm not sure what the correct solution for this is.  I know of
two workarounds, ie:

"\x1b\x19" "E"

and

"\x1b\x1b\x45"

I don't think either of them is particularly nice.  BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.