<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: HP printer control sequence in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-printer-control-sequence/m-p/2752983#M70682</link>
    <description>Perhaps this will help!&lt;BR /&gt;&lt;BR /&gt;First, getting PCL escape commands into a file, plus some examples:&lt;BR /&gt;&lt;BR /&gt;The command that the printer needs for formatting or, adding carriage returns to&lt;BR /&gt;line feeds, is the PCL string:&lt;BR /&gt;&lt;ESC&gt;&amp;amp;k2G&lt;BR /&gt;&lt;BR /&gt;ksh: print -n "\033&amp;amp;k2G" &amp;gt; afile&lt;BR /&gt;&lt;BR /&gt;Inserted at the beginning of the ASCII text file, this will eliminate stair stepping.&lt;BR /&gt;&lt;BR /&gt;Resetting printer:&lt;BR /&gt;&lt;ESC&gt;E&lt;BR /&gt;&lt;BR /&gt;ksh: print -n "\033E" &amp;gt; bfile&lt;BR /&gt;&lt;BR /&gt;At the end to ensure that following jobs won't get fooled!&lt;BR /&gt;&lt;BR /&gt;more pcl control codes (to combine codes use lower case on the final char):&lt;BR /&gt;portrait &lt;ESC&gt;&amp;amp;l0O&lt;BR /&gt;landscape &lt;ESC&gt;&amp;amp;l1O&lt;BR /&gt;symbol set ISO 8859-1 &lt;ESC&gt;(0N&lt;BR /&gt;&lt;BR /&gt;font courier &lt;ESC&gt;(s4099T&lt;BR /&gt;font arial   &lt;ESC&gt;(s16602T&lt;BR /&gt;font times   &lt;ESC&gt;(s16901T&lt;BR /&gt;&lt;BR /&gt;primary pitch &lt;ESC&gt;(s##H&lt;BR /&gt;&lt;BR /&gt;Then I wrote a simple wrapper script (attached) that feeds lp the control codes and the file(s) to print. Not the worlds most elegant solution - but it works!&lt;BR /&gt;&lt;BR /&gt;Robert&lt;BR /&gt;&lt;BR /&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;</description>
    <pubDate>Fri, 28 Jun 2002 07:19:26 GMT</pubDate>
    <dc:creator>Robert de Mander</dc:creator>
    <dc:date>2002-06-28T07:19:26Z</dc:date>
    <item>
      <title>HP printer control sequence</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-printer-control-sequence/m-p/2752979#M70678</link>
      <description>does any one know where can i know how to setup HP printer control sequence?</description>
      <pubDate>Thu, 27 Jun 2002 01:29:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-printer-control-sequence/m-p/2752979#M70678</guid>
      <dc:creator>O'lnes</dc:creator>
      <dc:date>2002-06-27T01:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: HP printer control sequence</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-printer-control-sequence/m-p/2752980#M70679</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Do you mean to create a print queue?  If so use either 'sam' or have alook at the man page for 'lpadmin'&lt;BR /&gt;&lt;BR /&gt;Michael</description>
      <pubDate>Thu, 27 Jun 2002 01:37:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-printer-control-sequence/m-p/2752980#M70679</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-06-27T01:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: HP printer control sequence</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-printer-control-sequence/m-p/2752981#M70680</link>
      <description>No, I want to use the HP printer control code ( eg. /027E/027&amp;amp;l0O ) to control the printout such as size , font etc. &lt;BR /&gt;&lt;BR /&gt;Andy.</description>
      <pubDate>Thu, 27 Jun 2002 01:41:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-printer-control-sequence/m-p/2752981#M70680</guid>
      <dc:creator>O'lnes</dc:creator>
      <dc:date>2002-06-27T01:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: HP printer control sequence</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-printer-control-sequence/m-p/2752982#M70681</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;To  add  printer-control  commands to the&lt;BR /&gt;print-job you  must edit the  model-script&lt;BR /&gt;for the printer.  The  model-script to&lt;BR /&gt;edit is  found  in /etc/lp/interface.&lt;BR /&gt;It has the same name as the queue-name for&lt;BR /&gt;the printer.&lt;BR /&gt;You will see that  most model-scripts have&lt;BR /&gt;a lot of options  (passed by using -o  option&lt;BR /&gt;in the lp command)&lt;BR /&gt;It could be that what you are looking for &lt;BR /&gt;already is covered by an option.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Olav&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Jun 2002 06:35:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-printer-control-sequence/m-p/2752982#M70681</guid>
      <dc:creator>Olav Baadsvik</dc:creator>
      <dc:date>2002-06-28T06:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: HP printer control sequence</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-printer-control-sequence/m-p/2752983#M70682</link>
      <description>Perhaps this will help!&lt;BR /&gt;&lt;BR /&gt;First, getting PCL escape commands into a file, plus some examples:&lt;BR /&gt;&lt;BR /&gt;The command that the printer needs for formatting or, adding carriage returns to&lt;BR /&gt;line feeds, is the PCL string:&lt;BR /&gt;&lt;ESC&gt;&amp;amp;k2G&lt;BR /&gt;&lt;BR /&gt;ksh: print -n "\033&amp;amp;k2G" &amp;gt; afile&lt;BR /&gt;&lt;BR /&gt;Inserted at the beginning of the ASCII text file, this will eliminate stair stepping.&lt;BR /&gt;&lt;BR /&gt;Resetting printer:&lt;BR /&gt;&lt;ESC&gt;E&lt;BR /&gt;&lt;BR /&gt;ksh: print -n "\033E" &amp;gt; bfile&lt;BR /&gt;&lt;BR /&gt;At the end to ensure that following jobs won't get fooled!&lt;BR /&gt;&lt;BR /&gt;more pcl control codes (to combine codes use lower case on the final char):&lt;BR /&gt;portrait &lt;ESC&gt;&amp;amp;l0O&lt;BR /&gt;landscape &lt;ESC&gt;&amp;amp;l1O&lt;BR /&gt;symbol set ISO 8859-1 &lt;ESC&gt;(0N&lt;BR /&gt;&lt;BR /&gt;font courier &lt;ESC&gt;(s4099T&lt;BR /&gt;font arial   &lt;ESC&gt;(s16602T&lt;BR /&gt;font times   &lt;ESC&gt;(s16901T&lt;BR /&gt;&lt;BR /&gt;primary pitch &lt;ESC&gt;(s##H&lt;BR /&gt;&lt;BR /&gt;Then I wrote a simple wrapper script (attached) that feeds lp the control codes and the file(s) to print. Not the worlds most elegant solution - but it works!&lt;BR /&gt;&lt;BR /&gt;Robert&lt;BR /&gt;&lt;BR /&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;</description>
      <pubDate>Fri, 28 Jun 2002 07:19:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-printer-control-sequence/m-p/2752983#M70682</guid>
      <dc:creator>Robert de Mander</dc:creator>
      <dc:date>2002-06-28T07:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: HP printer control sequence</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-printer-control-sequence/m-p/2752984#M70683</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;have a look at /usr/lib/lp/model/PCL5&lt;BR /&gt;&lt;BR /&gt;There you can find many PCL escape sequences.&lt;BR /&gt;They are used with echo "\033&amp;amp;...."&lt;BR /&gt;The \033 represents the escape char in octal value (hex: 1b)&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 28 Jun 2002 07:30:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-printer-control-sequence/m-p/2752984#M70683</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2002-06-28T07:30:12Z</dc:date>
    </item>
  </channel>
</rss>

