<?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: Hide control characters in TPU in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/hide-control-characters-in-tpu/m-p/4420526#M16638</link>
    <description>Hein,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;1) $ CONVERT/FDL="REC; FORM STREAM" sethost.log sethost.txt&lt;BR /&gt;&lt;BR /&gt;That did strip the &lt;CR&gt;&lt;LF&gt; and &lt;NL&gt;, but not &lt;CR&gt; and some of (all?) the escape sequences (backward question marks...)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2) $ perl -pe "s/\0//g;s/\r//g" sethost.log &amp;gt; sethost.txt&lt;BR /&gt;&lt;BR /&gt;I know this will be like sacrilege to you, but I don't have perl set up?&lt;BR /&gt;&lt;BR /&gt;At any rate, I'd rather not strip the codes out altogether.&lt;BR /&gt;&lt;BR /&gt;Thanks for the suggestions though.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Michelle&lt;/CR&gt;&lt;/NL&gt;&lt;/LF&gt;&lt;/CR&gt;</description>
    <pubDate>Fri, 15 May 2009 16:39:03 GMT</pubDate>
    <dc:creator>MichelleP_1</dc:creator>
    <dc:date>2009-05-15T16:39:03Z</dc:date>
    <item>
      <title>Hide control characters in TPU</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hide-control-characters-in-tpu/m-p/4420520#M16632</link>
      <description>Hi folks,&lt;BR /&gt;&lt;BR /&gt;How can I hide the control characters in a text file when editing with TPU.&lt;BR /&gt;&lt;BR /&gt;Most of the files are created with SET HOST/LOG or TELNET/LOG. I've tried it on Alpha / 8.3 and I64 / 8.3-1h1. I don't currently have access to a v7.x system.&lt;BR /&gt;&lt;BR /&gt;I'm not sure if it's my configuration or if the defaults have changed.&lt;BR /&gt;&lt;BR /&gt;TIA,&lt;BR /&gt;Michelle</description>
      <pubDate>Thu, 14 May 2009 23:40:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hide-control-characters-in-tpu/m-p/4420520#M16632</guid>
      <dc:creator>MichelleP_1</dc:creator>
      <dc:date>2009-05-14T23:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hide control characters in TPU</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hide-control-characters-in-tpu/m-p/4420521#M16633</link>
      <description>Michelle,&lt;BR /&gt;&lt;BR /&gt;  I'm not sure what you mean. &lt;BR /&gt;&lt;BR /&gt;As far as I can remember, TPU always displays a glyph for every character in a file. What it looks like depends on your terminal, or terminal emulator, especially the glyphs for control characters. &lt;BR /&gt;&lt;BR /&gt;  What are you seeing, and how would you like it to be different (or what was it like "before")?&lt;BR /&gt;&lt;BR /&gt;  Compare what you see on the screen with DUMP/RECORD.</description>
      <pubDate>Fri, 15 May 2009 01:31:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hide-control-characters-in-tpu/m-p/4420521#M16633</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2009-05-15T01:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Hide control characters in TPU</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hide-control-characters-in-tpu/m-p/4420522#M16634</link>
      <description>Well you know, those control character are there and meaningful to some. When I use set host/log, more often than not it is precisely to capture all the control characters.&lt;BR /&gt;&lt;BR /&gt;That said I do appreciate the annoyances when you just want to review what was done.&lt;BR /&gt;&lt;BR /&gt;So what to do? Me, I use two workaround BEFORE getting into TPU (or EDT).&lt;BR /&gt;&lt;BR /&gt;1) $ CONVERT/FDL="REC; FORM STREAM" sethost.log sethost.txt&lt;BR /&gt;&lt;BR /&gt;The convert to stream will make the embedded &lt;CR&gt;&lt;LF&gt; in commands like "$HOW STATUS" be indistinguishable from other new-lines. And it will have the welcome, but odd, side effect of eating leading binary zeroes you'll  find in logs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2) $ perl -pe "s/\0//g;s/\r//g" sethost.log &amp;gt; sethost.txt&lt;BR /&gt;&lt;BR /&gt;-p = loop over input lines, execute commands, and print (modified) lines... to stream-lf files, making embedded &lt;LF&gt; characters become line ends.&lt;BR /&gt;&lt;BR /&gt;-e = command in string&lt;BR /&gt;&lt;BR /&gt;s/x/y/g = substitute x by y. g = all of them&lt;BR /&gt;s/\0//g = replace all binary zeroes by nothing&lt;BR /&gt;s/\r//g = replace all carriage-return bu nothing.&lt;BR /&gt;&lt;BR /&gt;Enjoy!&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;/LF&gt;&lt;/LF&gt;&lt;/CR&gt;</description>
      <pubDate>Fri, 15 May 2009 01:37:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hide-control-characters-in-tpu/m-p/4420522#M16634</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-05-15T01:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hide control characters in TPU</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hide-control-characters-in-tpu/m-p/4420523#M16635</link>
      <description>Very little has changed in this area in eons, so I'd look to something local such as the terminal or terminal emulator.&lt;BR /&gt;&lt;BR /&gt;Or you could run the text file through a local or freeware tool to "clean it up", whether through a Perl or php script or C or otherwise-built or acquired tool.   Something like the string tool:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://labs.hoffmanlabs.com/node/875" target="_blank"&gt;http://labs.hoffmanlabs.com/node/875&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here's a reference to a similar behavior.  I recall seeing these characters going back a very long time, too.  If not all the way back to the beginning.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/wizard/wiz_7842.html" target="_blank"&gt;http://h71000.www7.hp.com/wizard/wiz_7842.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And as a guess around a completely different (potential) approach, you could try setting the terminal type to a line printer or something similar before you (try to) capture the text.  This should reduce the volume of the control characters and escape sequences and control sequences in the output.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 May 2009 01:51:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hide-control-characters-in-tpu/m-p/4420523#M16635</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-05-15T01:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hide control characters in TPU</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hide-control-characters-in-tpu/m-p/4420524#M16636</link>
      <description>I found a something I made in the eighties that I modified slightly. It erases all non-printable characters. I tested it on sysuaf and it seems to work.&lt;BR /&gt;&lt;BR /&gt;You edit your file with eve.&lt;BR /&gt;You take a second buffer with this procedure (get xxx). Then extend this buffer by going to command line of eve and doing "ext *".&lt;BR /&gt;&lt;BR /&gt;Then place the cursor in the dirty file buffer. Go to the command line and give "tpu eve_clear_nonprint".&lt;BR /&gt;&lt;BR /&gt;Note : this removed the nonprints and the file could be unusable afterwards.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Fri, 15 May 2009 06:27:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hide-control-characters-in-tpu/m-p/4420524#M16636</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2009-05-15T06:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hide control characters in TPU</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hide-control-characters-in-tpu/m-p/4420525#M16637</link>
      <description>I swear I replied with more information last night, but I must have taken too long to compose it. :-( ...&lt;BR /&gt;&lt;BR /&gt;Thanks for the suggestions so far, I'll give them a try, but if I could get it to "hide" the escape characters by default that would be ideal. I'm not really interested in stripping the underlying codes, just hiding them.&lt;BR /&gt;&lt;BR /&gt;I use SET HOST/LOG (and if necessary TELNET/LOG) for documentation and reference purposes.&lt;BR /&gt;&lt;BR /&gt;At prior customer sites, if I edited with TPU the control characters would be hidden. Not gone, just hidden. If I wanted to see them, I could edit the same file with EDT and see &lt;ESC&gt;, etc.&lt;BR /&gt;&lt;BR /&gt;I was beginning to think that I imagined it, but I found a C.O.V posting from 2006 where someone had the opposite issue - escape characters were not displaying and he wanted them to. &lt;A href="http://unix.derkeiler.com/Newsgroups/comp.os.vms/2006-03/msg00493.html." target="_blank"&gt;http://unix.derkeiler.com/Newsgroups/comp.os.vms/2006-03/msg00493.html.&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;I have tried both on Eisner and on Alpha and Integrity systems at a customer site. &lt;BR /&gt;&lt;BR /&gt;I have used SmartTerm, eXcursion, and Putty. At my last customer I used eXcursion and sometimes SmartTerm.&lt;BR /&gt;&lt;BR /&gt;I had a former co-worker send me a $SHOW TERM and set my terminal to match and still no joy.&lt;BR /&gt;&lt;BR /&gt;As a "work around", I have been copying screen+history to notepad. Downsides of that are the extra step and sometimes things scroll out of the buffer before I can get them captured.&lt;BR /&gt;&lt;BR /&gt;I have also tried SmartTerm's Capture function, but it disables the ability to copy/paste to the session and that's even more annoying.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Michelle&lt;BR /&gt;&lt;/ESC&gt;</description>
      <pubDate>Fri, 15 May 2009 16:13:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hide-control-characters-in-tpu/m-p/4420525#M16637</guid>
      <dc:creator>MichelleP_1</dc:creator>
      <dc:date>2009-05-15T16:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hide control characters in TPU</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hide-control-characters-in-tpu/m-p/4420526#M16638</link>
      <description>Hein,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;1) $ CONVERT/FDL="REC; FORM STREAM" sethost.log sethost.txt&lt;BR /&gt;&lt;BR /&gt;That did strip the &lt;CR&gt;&lt;LF&gt; and &lt;NL&gt;, but not &lt;CR&gt; and some of (all?) the escape sequences (backward question marks...)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2) $ perl -pe "s/\0//g;s/\r//g" sethost.log &amp;gt; sethost.txt&lt;BR /&gt;&lt;BR /&gt;I know this will be like sacrilege to you, but I don't have perl set up?&lt;BR /&gt;&lt;BR /&gt;At any rate, I'd rather not strip the codes out altogether.&lt;BR /&gt;&lt;BR /&gt;Thanks for the suggestions though.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Michelle&lt;/CR&gt;&lt;/NL&gt;&lt;/LF&gt;&lt;/CR&gt;</description>
      <pubDate>Fri, 15 May 2009 16:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hide-control-characters-in-tpu/m-p/4420526#M16638</guid>
      <dc:creator>MichelleP_1</dc:creator>
      <dc:date>2009-05-15T16:39:03Z</dc:date>
    </item>
  </channel>
</rss>

