Re: [OT] pjl escape sequences from linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gianluca Cecchi wrote:
> Hello,
> I have a F9 system where I copied an old program that prints directly
> to the parallel port where an hp lj 1100 is connected.
> I have to set a smaller font than default on that printer, so that
> what to be printed fits on page.
> It seems that when the printer is powered off it resets to fabric
> default that is not ok for the app.
> I found this page so that I can send an escape sequence to set the
> font and other parameters:
> 
> http://www.verypdf.com/pcltools/pjl_command.htm
> 
> But it is intended for dos systems.
> Does anyone know how to send the referred "escape sequence (Ec)" from
> a script or linux file?
> 
> To enter the escape sequence (Ec), press CTRL then P. No character
> will appear on the screen at this point. Let up on both keys and press
> ESC. A Left Arrow will be displayed on the screen.
> 
> So for example I have to set 14 as the font size and I should send to
> the parallel port this sequence:
> 
> Ec%-12345X@PJL SET LPARM : PCL PITCH=14
> Ec%-12345X
> 
> any hint?
> Thanks in advance,
> Gianluca
> 
Use the -e option of echo to get it to interpret backslash-escaped
characters. Then use \x1b for escape.

echo -e \x1b%-12345X

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux