home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 19 Printer
/
19-Printer.zip
/
fx80_sty.zip
/
stylus
/
test
/
fixed.cmd
next >
Wrap
OS/2 REXX Batch file
|
1995-04-10
|
1KB
|
46 lines
/* */
file='fixed.cmd'
/* Destination */
/*--- EXCLUDED ---
DEST = "stdout:"
--- EXCLUDED ---*/
DEST = "lpt1:"
CRLF = d2c(13) || d2c(10)
FFEED = d2c(12)
ESC = d2c(27)
/* Reset */
RESET = ESC || '@'
/* Initialisierung */
res=CHAROUT(dest,RESET);
res=charout(dest,ESC || "k" || d2c(2) ); /* Courier */
res=charout(dest,"Dies ist die normale Courier - Schrift" || crlf);
res=charout(dest,ESC || "gDies ist 10,5 Punkte, 15 cpi" || crlf);
res=charout(dest,ESC || "MDies ist 10,5 Punkte, 12 cpi" || crlf);
res=charout(dest,ESC || "PDies ist 10,5 Punkte, 10 cpi" || crlf);
res=charout(dest,d2c(14)||"Breitdruck für eine Zeile" || crlf);
res=charout(dest,ESC || "w" || d2c(1) || "Doppelte Höhe"||ESC || "w" || d2c(0)|| crlf);
res=charout(dest,d2c(15)|| "Schmaldruck"||d2c(18) || crlf);
res=charout(dest,ESC || "q" || d2c(1) || "Umrißdruck"|| crlf);
res=charout(dest,ESC || "q" || d2c(2) || "Schattendruck"|| crlf);
res=charout(dest,ESC || "q" || d2c(3) || "Umriß- und Schattendruck"|| crlf);
res=charout(dest,ESC || "q" || d2c(0) || "...und wieder normal"|| crlf);
res=charout(dest,ESC || "-" || d2c(1) || "Diese Zeile ist unterstrichen"||ESC || "-" || d2c(0)|| crlf);
res=charout(dest,crlf||crlf);
res=charout(dest,"Und jetzt die Eingabedatei für diese Daten:" || crlf);
do while (lines(file))
a=linein("fonts.cmd");
res=charout(dest,a || crlf);
end
exit