From - Fri Nov 15 21:27:47 1996
Path: nntp.ulg.ac.be!news.belnet.be!swsbe6.switch.ch!swidir.switch.ch!01-
newsfeed.univie.ac.at!voskovec.radio.cz!btnet-
feed2!btnet!newsfeed.internetmci.com!feed1.news.erols.com!howland.erols.net!EU.n
et!sun4nl!cs.ruu.nl!usenet
From: jpeschie@cs.ruu.nl (Jarno Peschier)
Newsgroups: comp.sys.hp48
Subject: All printer codes for the HP 82240B printer/emulator  (was: Re: How to 
print graphics on IR printer HP82240B)
Date: Thu, 14 Nov 1996 18:06:54 GMT
Organization: Utrecht University - Computer Science faculty
Lines: 46
Message-ID: <328b272d.5305974@news.cs.ruu.nl>
References: <3289339A.1F23@sa.omnes.net>
NNTP-Posting-Host: anx1p31.cc.ruu.nl
X-Newsreader: Forte Free Agent 1.1/16.230

asundivi@sa.omnes.net wrote the following:

>Please, Could somebody help me with the description on the subjet of
>this message?

The printer code for sending graphics data to a HP82240B printer is
very simple: an ESC character, then a byte telling how many bytes of
data are to follow and then the bytes, one for each 8 bit high column
of pixels (I can't remember right now if the top bit is the LSB or the
MSB).

You could use the following directory of programs for using all the
printer codes of the HP82240B. To convert a string of graphics data to
a string you can send to the printer to print the graphics data you
can simply use the Graphics program:

DIR
  Reset << 255 CC >>
  Underline << -> text << 251 CC text + 250 CC + >> >>
  Expanded << -> text << 253 CC text + 252 CC + >> >>
  ECMA94 << 249 CC >>
  Roman8 << 248 CC >>
  Graphics << -> data << data SIZE CC data + >> >>
  Selftest << 254 CC >>
  CC << -> cc << 27 CHR cc CHR + >> >>
  $TITLE "HP82240B printer codes"
  $ROMID [some LID number you want]
  $CONFIG << [same LID] ATTACH >>
  $HIDDEN { CC }
END

As you can see, you can make a handy little library out of this with
D->LIB.

One example, if you would like the print the string "In this sentence
_one_ word is underlined." on your HP82240B (or on my emulator) after
resetting the printer, you could use:

<< Reset "In this sentence " + "one" Underline + " word is
underlined." + PR1 >>


Jarno Peschier, jpeschie@cs.ruu.nl, 2:2802/247.5@Fido, 162:100/100.2@Agora,
     74:3108/101.5@QuaZie, 27:2331/201.5@SigNet, 606:3130/200.2@F1-net
___________________________________________________________________________
           'avwI' nejDI' narghta'bogh qama' reH 'avwI' Sambej
