<?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: Embed ASCII Characters in text file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/embed-ascii-characters-in-text-file/m-p/2992818#M913020</link>
    <description>Using vi:&lt;BR /&gt;&lt;BR /&gt;Position the cursor at the desired insertion point:&lt;BR /&gt;&lt;BR /&gt;Press "i" to enter Insertion Mode.&lt;BR /&gt;Enter "Cntrl-V" - the next character will be quoted without any interpretation. You should see a "^" to indicate that the next character is to be escaped.&lt;BR /&gt;Press ESCAPE (or any other desired control char)&lt;BR /&gt;Press ESCAPE again to end the insert.&lt;BR /&gt;:w to save the file&lt;BR /&gt;:q to exit vi.&lt;BR /&gt;&lt;BR /&gt;You can check you work (if you don't trust the vi display) using od -c myfile.&lt;BR /&gt;</description>
    <pubDate>Mon, 09 Jun 2003 21:55:40 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2003-06-09T21:55:40Z</dc:date>
    <item>
      <title>Embed ASCII Characters in text file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/embed-ascii-characters-in-text-file/m-p/2992813#M913015</link>
      <description>Was curious if anyone could give me the proper way to embed an ESC in a text file.  What I need is to send an ESC followed by the following text.  TEST1ON.  this will be sent out the serial port.&lt;BR /&gt;&lt;BR /&gt;Thanks for looking</description>
      <pubDate>Mon, 09 Jun 2003 20:49:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/embed-ascii-characters-in-text-file/m-p/2992813#M913015</guid>
      <dc:creator>Bill Fisher</dc:creator>
      <dc:date>2003-06-09T20:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Embed ASCII Characters in text file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/embed-ascii-characters-in-text-file/m-p/2992814#M913016</link>
      <description>1- command way&lt;BR /&gt;echo "\033"TEST01&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2-&lt;BR /&gt;file way&lt;BR /&gt; vi TEST_FILE&lt;BR /&gt;i&lt;BR /&gt; ^V[esc key]TEST01&lt;BR /&gt;[ESC key]:w!&lt;BR /&gt;&lt;BR /&gt;cat TEST_FILE</description>
      <pubDate>Mon, 09 Jun 2003 21:00:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/embed-ascii-characters-in-text-file/m-p/2992814#M913016</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2003-06-09T21:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Embed ASCII Characters in text file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/embed-ascii-characters-in-text-file/m-p/2992815#M913017</link>
      <description>This one is easy: "echo \033&amp;gt;&amp;gt;$FILE".  This puts the octal equivalent of the escape character (decimal 027) in your text file.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Mon, 09 Jun 2003 21:01:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/embed-ascii-characters-in-text-file/m-p/2992815#M913017</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-06-09T21:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Embed ASCII Characters in text file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/embed-ascii-characters-in-text-file/m-p/2992816#M913018</link>
      <description>Thanks for the quick responses.  I should have been more explicit in my question.  This is part of a configuration file for the serial ports and the ESC will need to be a part of the config file.  A small example follows.&lt;BR /&gt;&lt;BR /&gt;NUMBER OF TERMINALS:  2&lt;BR /&gt;TERMINAL NAME:  TTY A&lt;BR /&gt;TERMINAL DEVICE:  /dev/tty0p0&lt;BR /&gt;TERMINAL iflag:  ICRNL |IXOFF |IXON&lt;BR /&gt;(all the rest of the TERMINAL settings)&lt;BR /&gt;Open relay string:  ESCTEST1OFF&lt;BR /&gt;Close relay string:  ESCTEST1ON&lt;BR /&gt;(relay 2 - 8 the same)&lt;BR /&gt;The text after the colon gets sent out the appropriate serial port.  I can edit the file using vi or any editor.</description>
      <pubDate>Mon, 09 Jun 2003 21:33:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/embed-ascii-characters-in-text-file/m-p/2992816#M913018</guid>
      <dc:creator>Bill Fisher</dc:creator>
      <dc:date>2003-06-09T21:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Embed ASCII Characters in text file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/embed-ascii-characters-in-text-file/m-p/2992817#M913019</link>
      <description>If i've understood rigth, you wish chage ESC by esc char in the file, so try the second way.&lt;BR /&gt;&lt;BR /&gt;type CNTRL-V and then type ESC key. You will see a ^[ in your screen that is teh esc (0x1b , 033 octal) char</description>
      <pubDate>Mon, 09 Jun 2003 21:54:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/embed-ascii-characters-in-text-file/m-p/2992817#M913019</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2003-06-09T21:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Embed ASCII Characters in text file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/embed-ascii-characters-in-text-file/m-p/2992818#M913020</link>
      <description>Using vi:&lt;BR /&gt;&lt;BR /&gt;Position the cursor at the desired insertion point:&lt;BR /&gt;&lt;BR /&gt;Press "i" to enter Insertion Mode.&lt;BR /&gt;Enter "Cntrl-V" - the next character will be quoted without any interpretation. You should see a "^" to indicate that the next character is to be escaped.&lt;BR /&gt;Press ESCAPE (or any other desired control char)&lt;BR /&gt;Press ESCAPE again to end the insert.&lt;BR /&gt;:w to save the file&lt;BR /&gt;:q to exit vi.&lt;BR /&gt;&lt;BR /&gt;You can check you work (if you don't trust the vi display) using od -c myfile.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Jun 2003 21:55:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/embed-ascii-characters-in-text-file/m-p/2992818#M913020</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-06-09T21:55:40Z</dc:date>
    </item>
  </channel>
</rss>

