🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7192

TC++ & DeskJet+ graphics programming: can't print '\x1a' !!??

#7192
From: Michael David Carr
Date: Fri, 21 Jun 1991 04:06
23 lines
1466 bytes
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
Technical Details
Message-ID: <1991Jun21.040657.3195@ux1.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!linac!mp.cs.niu.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!mdcg7180

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!linac!mp.cs.niu.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!mdcg7180
From: mdcg7180@uxa.cso.uiuc.edu (Michael David Carr)
Newsgroups: comp.os.msdos.programmer,comp.lang.c,comp.sys.ibm.pc.misc
Subject: TC++ & DeskJet+ graphics programming: can't print '\x1a' !!??
Summary: Why can't I send a '\x1a' to DeskJet?
Keywords: deskjet, tc++, c, c++
Message-ID: <1991Jun21.040657.3195@ux1.cso.uiuc.edu>
Date: 21 Jun 91 04:06:57 GMT
Sender: usenet@ux1.cso.uiuc.edu (News)
Organization: University of Illinois at Urbana
Lines: 23