Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Perl and Serial Printer

by diskcrash (Hermit)
on Apr 17, 2004 at 18:56 UTC ( [id://346004]=note: print w/replies, xml ) Need Help??


in reply to Perl and Serial Printer

Yo Shadox,

Things like font sizes, italics, bold etc. generally come from escape sequences such as those found for the DEC VT100 character set. You need to locate the manufacturer(s) of the printer(s) that you are interested in to get the appropriate control codes to set these attributes. You generally "set attribute" with one command and "unset attribute" with another. The tough part is you have to intersperse your text with the appropriate commands, which is the kind of thing Perl was designed for.

You may also have to be sure the printer is in the "right state" with reset commands before printing. At least invoices and receipts are of a fairly uniform style for printing. In some case you can download crude logos too. We did this with an NEC printer attached to a serial terminal for a County Recorders office system. Good luck.

Diskcrash

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://346004]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-03-28 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found