<?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: Printer  Line Termination in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-line-termination/m-p/3078041#M810474</link>
    <description>The printer is setup as a remote printer.&lt;BR /&gt;&lt;BR /&gt;I thought what I'd try to do before hand is create a text file, with the esc sequence and a few lines of text, and send this in the normal way.&lt;BR /&gt;&lt;BR /&gt;eg - test.print&lt;BR /&gt;^[&amp;amp;k3G&lt;BR /&gt;test&lt;BR /&gt;test&lt;BR /&gt;&lt;BR /&gt;I then ran "lp -dsgmrp2 test.print&lt;BR /&gt;But it still prints out staircased and displays the k3G at the start.&lt;BR /&gt;&lt;BR /&gt;This must be the wrong escape sequence.&lt;BR /&gt;Is it possible to test it in this way?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 25 Sep 2003 05:30:49 GMT</pubDate>
    <dc:creator>TMcB</dc:creator>
    <dc:date>2003-09-25T05:30:49Z</dc:date>
    <item>
      <title>Printer  Line Termination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-line-termination/m-p/3078037#M810470</link>
      <description>Hello&lt;BR /&gt;I'm trying to setup a non-HP wireless printer on a HPUX 10.20 server.&lt;BR /&gt;&lt;BR /&gt;The prints are coming out, but in a "staircase" effect.&lt;BR /&gt;&lt;BR /&gt;I believe I may  have to send an escape sequence, and from the HP web site, I think it should be Esc&amp;amp;k3G.&lt;BR /&gt;&lt;BR /&gt;Can anyone advise me on how I get the print queue to use this escape sequence.&lt;BR /&gt;&lt;BR /&gt;Much appreciated!</description>
      <pubDate>Thu, 25 Sep 2003 03:48:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-line-termination/m-p/3078037#M810470</guid>
      <dc:creator>TMcB</dc:creator>
      <dc:date>2003-09-25T03:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Printer  Line Termination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-line-termination/m-p/3078038#M810471</link>
      <description>This is one way to do it though there may be a simpler way.Edit the script in  /var/spool/lp/interface that matches the name of the printer.  In there, near the bottom you will find a section that actually send stuff to the printer.  Add an echo command to send the characters you need.&lt;BR /&gt;If you use "vi" to edit the script, you need to do CTRL V and then ESC in order to get the ESC character in there.There may be a more modern way to achieve this but I am still living in the good old dark ages :)</description>
      <pubDate>Thu, 25 Sep 2003 03:56:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-line-termination/m-p/3078038#M810471</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-25T03:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Printer  Line Termination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-line-termination/m-p/3078039#M810472</link>
      <description>thanks for the reply&lt;BR /&gt;&lt;BR /&gt;should I add it to the following line :&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/rlp -I$requestid $BSDC $BSDJ $BSDT $BSDi $BSD1 $BSD2 $BSD3 $BSD4 $BSDw $BSDformat $BSDh $1</description>
      <pubDate>Thu, 25 Sep 2003 04:24:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-line-termination/m-p/3078039#M810472</guid>
      <dc:creator>TMcB</dc:creator>
      <dc:date>2003-09-25T04:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Printer  Line Termination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-line-termination/m-p/3078040#M810473</link>
      <description>It depends.If the printer appears to the OS as a remote printer, which from your comment it appears to, it gets a little more unpleasant.  You are going to have to do something odd with the file pointed to by $1 like copy it and add the escape sequence and though this would work it is a bit messy. You could try creating a file somewhere which contains the escape sequence and in the interface script add another "rlp" line before the proper one that looks similar but instead of the $1 has your file with the escape sequence.  The only reason this might not work is if the printer resets these kind of settings after each print.</description>
      <pubDate>Thu, 25 Sep 2003 04:47:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-line-termination/m-p/3078040#M810473</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-25T04:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Printer  Line Termination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-line-termination/m-p/3078041#M810474</link>
      <description>The printer is setup as a remote printer.&lt;BR /&gt;&lt;BR /&gt;I thought what I'd try to do before hand is create a text file, with the esc sequence and a few lines of text, and send this in the normal way.&lt;BR /&gt;&lt;BR /&gt;eg - test.print&lt;BR /&gt;^[&amp;amp;k3G&lt;BR /&gt;test&lt;BR /&gt;test&lt;BR /&gt;&lt;BR /&gt;I then ran "lp -dsgmrp2 test.print&lt;BR /&gt;But it still prints out staircased and displays the k3G at the start.&lt;BR /&gt;&lt;BR /&gt;This must be the wrong escape sequence.&lt;BR /&gt;Is it possible to test it in this way?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2003 05:30:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-line-termination/m-p/3078041#M810474</guid>
      <dc:creator>TMcB</dc:creator>
      <dc:date>2003-09-25T05:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Printer  Line Termination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-line-termination/m-p/3078042#M810475</link>
      <description>That does sort of suggest that the escape sequence is incorrect.  Are there no configuration changes you can make on the printer itself? usually there is something that allows you to add carriage return at the end of a line. Or sometimes it's to actually remove newlines.</description>
      <pubDate>Thu, 25 Sep 2003 06:20:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-line-termination/m-p/3078042#M810475</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-25T06:20:37Z</dc:date>
    </item>
  </channel>
</rss>

