🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#7214
From: Arthur Rubin
Date: Fri, 21 Jun 1991 15:47
26 lines
1655 bytes
In <1991Jun21.040657.3195@ux1.cso.uiuc.edu> mdcg7180@uxa.cso.uiuc.edu (Michael David Carr) writes:

>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.

I've noticed this also.  You might try (re)opening the printer in "b"inary mode
rather than in "t"ext mode.  Sometimes that works.
--
2165888@mcimail.com 70707.453@compuserve.com arthur@pnet01.cts.com (personal)
a_rubin@dsg4.dse.beckman.com (work)
My opinions are my own, and do not represent those of my employer.
Technical Details
Message-ID: <a_rubin.677519221@dn71>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!usc!orion.oac.uci.edu!beckman.com!dn71!a_rubin
References: <1991Jun21.040657.3195@ux1.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!usc!orion.oac.uci.edu!beckman.com!dn71!a_rubin
From: a_rubin@dsg4.dse.beckman.com (Arthur Rubin)
Newsgroups: comp.os.msdos.programmer,comp.sys.ibm.pc
Subject: Re: TC++ & DeskJet+ graphics programming: can't print '\x1a' !!??
Keywords: deskjet, tc++, c, c++
Message-ID: <a_rubin.677519221@dn71>
Date: 21 Jun 91 15:47:01 GMT
References: <1991Jun21.040657.3195@ux1.cso.uiuc.edu>
Lines: 26
Nntp-Posting-Host: dn71.dse.beckman.com