Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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


In reply to Re: Perl and Serial Printer by diskcrash
in thread Perl and Serial Printer by shadox

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-19 04:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found