<?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: Changing font size on dot-matrix printer in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-font-size-on-dot-matrix-printer/m-p/2524138#M878466</link>
    <description>If you want to set up a special printer (which might be the same physical printer as another) there is a fairly simple way.&lt;BR /&gt;&lt;BR /&gt;Create a new printer (e.g. myprinter). Then cd to /var/spool/lp/interface. The file you want to edit is either myprinter or model.orig/myprinter depending on the interface script you start with.&lt;BR /&gt;&lt;BR /&gt;Somewhere in the interface, you will find a loop (look for $copies) where the input file&lt;BR /&gt;is cat'ed to a device.&lt;BR /&gt;&lt;BR /&gt;You need to create a temporary file to set the printer and a temporary file to reset the printer. I don't know what the sequences are for your printer but the idea is something like this:&lt;BR /&gt;&lt;BR /&gt;TDIR=${TMPDIR:-/var/tmp}&lt;BR /&gt;T1=${TDIR}/P${$}_1.cmd&lt;BR /&gt;T2=${TDIR}/P${$}_2.cmd&lt;BR /&gt;#T1 set up the printer&lt;BR /&gt;echo "\033\c" &amp;gt; $T1&lt;BR /&gt;echo "0\033CD\c &amp;gt;&amp;gt; $T1&lt;BR /&gt;echo "\033P\c" &amp;gt;&amp;gt; $T1&lt;BR /&gt;echo "\022\c" &amp;gt;&amp;gt; $T1&lt;BR /&gt;&lt;BR /&gt;# now build T2 to reset the printer; I'll just do a Formfeed&lt;BR /&gt;echo "\014\c" &amp;gt; $T2&lt;BR /&gt;&lt;BR /&gt;now within the loop I mentioned above:&lt;BR /&gt;we will cat $T1 $XFILE $T2 | some command&lt;BR /&gt;&lt;BR /&gt;where $XFILE is the input file&lt;BR /&gt;&lt;BR /&gt;when the loop is do rm -f $T1 $T2&lt;BR /&gt;&lt;BR /&gt;If you can find the proper printer sequences&lt;BR /&gt;and I didn't confuse you too much, this should work.&lt;BR /&gt;&lt;BR /&gt;Hope this gets you started, Clay&lt;BR /&gt;</description>
    <pubDate>Wed, 02 May 2001 23:51:21 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2001-05-02T23:51:21Z</dc:date>
    <item>
      <title>Changing font size on dot-matrix printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-font-size-on-dot-matrix-printer/m-p/2524136#M878464</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a address label which is printed on an Epson LQ-2080 dot matrix printer from Oracle Apps 11.03 on HP-UX. &lt;BR /&gt;&lt;BR /&gt;These labels require a large font size. Is there anyway I can change the font size on the printer for this report by sending some escape sequences (and set it back to the normal after the job is complete) ?&lt;BR /&gt;&lt;BR /&gt;Please guide.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sunil.</description>
      <pubDate>Wed, 02 May 2001 22:41:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-font-size-on-dot-matrix-printer/m-p/2524136#M878464</guid>
      <dc:creator>Sunil Oza</dc:creator>
      <dc:date>2001-05-02T22:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Changing font size on dot-matrix printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-font-size-on-dot-matrix-printer/m-p/2524137#M878465</link>
      <description>You might have better luck posting your query at support.oracle.com.&lt;BR /&gt;&lt;BR /&gt;Good Luck, Clay</description>
      <pubDate>Wed, 02 May 2001 23:26:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-font-size-on-dot-matrix-printer/m-p/2524137#M878465</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-05-02T23:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing font size on dot-matrix printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-font-size-on-dot-matrix-printer/m-p/2524138#M878466</link>
      <description>If you want to set up a special printer (which might be the same physical printer as another) there is a fairly simple way.&lt;BR /&gt;&lt;BR /&gt;Create a new printer (e.g. myprinter). Then cd to /var/spool/lp/interface. The file you want to edit is either myprinter or model.orig/myprinter depending on the interface script you start with.&lt;BR /&gt;&lt;BR /&gt;Somewhere in the interface, you will find a loop (look for $copies) where the input file&lt;BR /&gt;is cat'ed to a device.&lt;BR /&gt;&lt;BR /&gt;You need to create a temporary file to set the printer and a temporary file to reset the printer. I don't know what the sequences are for your printer but the idea is something like this:&lt;BR /&gt;&lt;BR /&gt;TDIR=${TMPDIR:-/var/tmp}&lt;BR /&gt;T1=${TDIR}/P${$}_1.cmd&lt;BR /&gt;T2=${TDIR}/P${$}_2.cmd&lt;BR /&gt;#T1 set up the printer&lt;BR /&gt;echo "\033\c" &amp;gt; $T1&lt;BR /&gt;echo "0\033CD\c &amp;gt;&amp;gt; $T1&lt;BR /&gt;echo "\033P\c" &amp;gt;&amp;gt; $T1&lt;BR /&gt;echo "\022\c" &amp;gt;&amp;gt; $T1&lt;BR /&gt;&lt;BR /&gt;# now build T2 to reset the printer; I'll just do a Formfeed&lt;BR /&gt;echo "\014\c" &amp;gt; $T2&lt;BR /&gt;&lt;BR /&gt;now within the loop I mentioned above:&lt;BR /&gt;we will cat $T1 $XFILE $T2 | some command&lt;BR /&gt;&lt;BR /&gt;where $XFILE is the input file&lt;BR /&gt;&lt;BR /&gt;when the loop is do rm -f $T1 $T2&lt;BR /&gt;&lt;BR /&gt;If you can find the proper printer sequences&lt;BR /&gt;and I didn't confuse you too much, this should work.&lt;BR /&gt;&lt;BR /&gt;Hope this gets you started, Clay&lt;BR /&gt;</description>
      <pubDate>Wed, 02 May 2001 23:51:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-font-size-on-dot-matrix-printer/m-p/2524138#M878466</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-05-02T23:51:21Z</dc:date>
    </item>
  </channel>
</rss>

