[comp.sys.amiga.misc] HP Laserjet III from a Amiga.

hjanssen@cbnewse.cb.att.com (hank janssen) (06/26/91)

From article <18730004@hplsla.HP.COM>, by tomb@hplsla.HP.COM (Tom Bruhns):
> 
>  hjanssen@cbnewse.att.com (hank janssen) writes:
>  
>> I have a Laserjet III, and i wanted to write a  programm  that  prints
>> I  want  to  controll the printer by bypassing the printer.device from
>> amiga and directly go to PRT:
>> Example a string like this. (THis is only an example):  <ESC>[5j
>> Will result on the prinout as:  5j
>> It eats up my ESCAPE character and my [  character.  while  it  should
>> interped as something changing from landscap  to  portait.  changing
>> point size etc etc.
>> 
>> Whatever escape sequence i sent the prnter it just prints it out minus
>> the escape character. I have tried by sending the real escape Sequence character its octal and
>> decimal value, but to no avail.
> 
> (Tried to email and it bounced...)   I think you are not sending what the
> printer wants!  Look carefully at the manual.  I suspect an <ESC> is
> given as a _control_ [  ...  That is, I suspect that you should be
> sending <esc>5j or something like that, though if that's the last
> (only) command of the string, I think the last char should be J not j.
> I looked in my LaserJetIIP manual, and found no commands that began
> with esc[, and in particular, that wasn't the command to change the
> orientation.  It sounds a lot like the printer is getting the characters
> you are sending, but those aren't the characters that do what you think.
> I've been able to simply edit a file with QED, putting in the escape
> codes, etc., and copy that to PAR:, and everything comes out fine.
> That is, I can use that mechanism to select fonts, etc.
> 
> Also, notice that I sent it to PAR: (could have been SER:), NOT to PRT:,
> which I think always filters things.


That is alos what my initial thought was. (I  am  the  poster  of  the
article  asking  the  question) But my HP III manual's commands almost
all start with the ^[ character. Which is the escape character.

No,  actually  as so many people pointed out. It was a very big st.pid
error on my part, i sent all my stuff to PRT: and when i  send  it  to
PAR: all was well and resulted excatly in what i thought i should get.
So thanx very much for all the people  that  told  me  this.  Maybe  i
should read the manuals better before i scream..... sigh. ;-)

I  will  no  write  the  program  i  was  planning  for the HP III and
compatible.It will have a lot of features  utilizing  the  HP  to  its
fullest, full intuition interface etc etc etc. If there is anybody out
there interested i will post the final product.......


Thanx again ever so much, i feel very small now..... :-)


---------------------------------------------------+-------------------
                  Hank Janssen  (CPU)              | REMEMBER: 
                  att!ihlpb!hjanssen               | It is better 
			                           |      to burn out,
        Rest Of Signature Under Construction.      | than to fade away
---------------------------------------------------+-------------------
-- 
---------------------------------------------------+-------------------
                  Hank Janssen  (CPU)              | REMEMBER: 
                  att!ihlpb!hjanssen               | It is better 
			                           |      to burn out,