1838135 Members
3231 Online
110124 Solutions
New Discussion

PCL code

 
SOLVED
Go to solution
Paul Thomson_2
Super Advisor

PCL code

Hi

This is probably in the wrong area !!!! But,

I am trying to generate PCL code to be send to a printer.

Currently I have a setup where the PLC code is sending a number of control characters as below

^[&l67F^[&a3L
This sets text length to 67 lines and the left margin to 3.

When you cat the file is shows as

l67Fa3L

So I need to add a sequence in the file to set the top margin to 0

So if I more the file is should look like.

^[&l67F^[&a3L^[&l0E

and when catting show as

l67Fa3Ll0E

However, in vi, I am unable to generate the required control sequence to make the ^[&, as I cannot do this in vi !!!

Thanks


Argh ye land lovers !
2 REPLIES 2
Steve Steel
Honored Contributor
Solution

Re: PCL code

Hi


That is normally

cntrlV Pressed together escape &

It works for me


Steve Steel


I Do Whatever My Rice Krispies Tell Me To

If you want truly to understand something, try to change it. (Kurt Lewin)
Paul Thomson_2
Super Advisor

Re: PCL code

Steve,

thanks for the update this has worked.

My problem was I was using an emulator to access unix and the CTRL V does the same job as in windows (Scum) , a paste.

So Iaccessed the server from a dos prompt telnet and can use the sequence in vi this way.

many thanks
Paul
Argh ye land lovers !