Raziel wrote:my_pc_is_amiga wrote:
Not sure if this will work but you can try:
ECHO > PRT: "*E[5*"r*E&l1S"
ESC is *E in shell
and *E[n"r means that this is a raw comand, n is the number of bytes in this case 5 bytes: *E&l1S
My understanding is tha raw means any command going directly to the printer without going to through the printer device
It's throwing out a paper with nothing on.
Unfortunately at least on my printer no setting has been changed either.
But at least it's not printing the command anymore
1) I've been playing with the ECHO command and is working with a 932c deskjet (I didn't try the escape command above as I'm not sure if deskjets supports it). But I did try playing around with the PCL character sets and saw a difference. For example with my Amiga set to the ISO-8859-15 character set in Locale Prefs and also the keymap set to the same in Input prefs, I can type the following in the shell:
ECHO > PRT: "*E[5*"r*E(10U¹²³¢€67·«»"
Using the printtofile.device in printer Prefs, I can see how the driver is translating Amiga escape sequences into HP PCL ones without printing. The stuff below in bold is the PCL command I have above and the other things in normal text are coming from the printer prefs settings doing an "init" of the printer.
type hex <name of dumpfile> to see below:
0000: 1B266C32 411B2664 401B266C 36441B28 .&l2A.&d@.&l6D.(
0010: 394E1B28 73306231 30683271 30703073 9N.(s0b10h2q0p0s
0020: 33743075 3132560D 1B2A722D 34551B2A 3t0u12V..*r-4U.*
0030: 7631531B 266C316C 32653630 461B2661 v1S.&l1l2e60F.&a
0040: 346C3734 4D0D1B28 313055B9 B2B3A2A4 4l74M.
.(10U¹²³¢€
0050: 3637B7AB BB0D0A0C
67·«»...
The ESC(10U is the HP PCL escape sequence to choose the printer's PC-8 character set. If I now send this via lpr.device through my HP printer driver, I
won't see ¹²³¢€67·«» but instead the printer will print see some strange symbols. These symbols that are being printed are matching the documentation I have from an old 550C manual for the PC-8 character set.
2) Now what is extremely cool, which I found out, is that character set we choose in the locale prefs is being reflected in what is being sent to the printer in that begining part of init. If you look above there is a ESC(9N command code and if you look here
http://pclhelp.com/pcl-symbol-sets/ this corresponds to ISO 8859/15 Latin 9 (W. Eur.) -- which is exactly what I have set to in Locale. Now if I change to ISO 8859-1 in Locale, the command will show ESC(0N, which is the correct one!
3) I'm noticing that printer init is always happening, no matter if I have the "Always Init Printer" ticked or not in printer prefs. On 3.9, I was checking, and after the first init, it doesn't do it again unless I do a "avail flush" and so wondering if this is some behavior related to the new OS4 memory system.
But to bring back to the thread --- I would try to use the printtofile.device and see what escape code is really being sent and then compare the hex to see if it matches to what you are expecting. Escape character is is 1B in hex and is printed as a . in the output.