[comp.sys.ibm.pc.misc] TC++ & DeskJet+ graphics programming: can't print '\x1a' !!??

mdcg7180@uxa.cso.uiuc.edu (Michael David Carr) (06/21/91)

I'm new to C, so if I'm overlooking the obvious, please bear with me.

I'm trying to print graphics on a DeskJet+, and am having no problems
except that I can't send ASCII 26 in a string of graphics bytes.

For those not familiar with the Deskjet (but C pros), to print a
row of graphics pixels, you must first put the printer in graphics
mode (I did that).  Then send it an Escape, and the following string:
     *b###W (... data bytes) 

   where ### is the number of data bytes that follow.

     The data bytes represent 8 pixels, and can take on values from
0 to 255.  I can print any byte except ASCII 26!

     It isn't the printer, because I can send a 26 in BASIC and
FORTRAN.

Any help would be greatly appreciated (HP and Borland have no clue).

Michael Carr
mdcg7180@uxa.cso.uiuc.edu
Graduate Engineering, U. of I. at Urbana-Champaign