Control and Escape codes for the IBM Personal Computer Printers Ascii # Effect ------- ------ 14 SO - Double width, canceled by CR, LF or DC4 15 SI - Compressed print mode 18 DC2 - Compressed off 20 DC4 - Double width off 24 CAN - Clears the printer buffer. Also cancels SO 27 ESC - Printer command character ESC + Effect ------- ------ - ESC -;n; (Graphics printer only) 1 turns underline on, 0 it off 0 1/8 inch line feeding 1 7/72 inch line feeding 2 Executes effects of ESC A; if no ESC A issued, sets 1/6 inch 3 ESC 3;n; (Graphics printer only) n sets n/216 inch linefeeds 6 (Graphics printer only) Selects character set 2 7 (Graphics printer only) Selects character set 1 8 Make printer ignore Paper End switch 9 Cancel ESC 8 < (Graphics printer only) Return printhead to left margin A ESC A;n; n sets n/72 inch linefeeds, must activate with ESC 2 B ESC B;n1;n2;...;NUL; (Matrix printer only) Sets vertical tab stops, used with ^K. Acts as linefeed if no stops set. C ESC C;n; Sets page length, max of 127 lines per page D ESC D;n1;n2;...;NUL; Sets horizontal tab stops, used with ^I. Both vertical & horizontal stops must be ascending E Emphasized print mode. Also slows to half speed F Cancel ESC E G Double Strike mode H Cancel ESC G J ESC J;n; (Graphics printer only) n sets n/216 inch linefeeds, canceled by the linefeed which occurs K ESC K;n1;n2;v1;v2;... (Graphics printer only) Sets 480 bit image graphics mode. n1+256n2 tells how many v's follow, and cannot exceed 480 L Sets 960 bit image graphics mode. As with ESC K, but 960 bits N ESC N;n; Skip n lines on perforations O cancel ESC N S ESC S;n; (Graphics printer only) Subscript if n=1, superscript if n=0 T Cancel ESC S U ESC U;n; n=1 sets left-right printing only. n=0 cancels W ESC W;n; (Graphics printer only) n=1 sets "permanent" double- width mode. n=0 cancels Y Normal speed ESC L, but cannot print 2 consecutive dots Z Sets 1920 bit image graphics mode. Can only print every 3rd dot position.