- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Hide control characters in TPU
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 04:40 PM
тАО05-14-2009 04:40 PM
Hide control characters in TPU
How can I hide the control characters in a text file when editing with TPU.
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.
I'm not sure if it's my configuration or if the defaults have changed.
TIA,
Michelle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 06:31 PM
тАО05-14-2009 06:31 PM
Re: Hide control characters in TPU
I'm not sure what you mean.
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.
What are you seeing, and how would you like it to be different (or what was it like "before")?
Compare what you see on the screen with DUMP/RECORD.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 06:37 PM
тАО05-14-2009 06:37 PM
Re: Hide control characters in TPU
That said I do appreciate the annoyances when you just want to review what was done.
So what to do? Me, I use two workaround BEFORE getting into TPU (or EDT).
1) $ CONVERT/FDL="REC; FORM STREAM" sethost.log sethost.txt
The convert to stream will make the embedded
2) $ perl -pe "s/\0//g;s/\r//g" sethost.log > sethost.txt
-p = loop over input lines, execute commands, and print (modified) lines... to stream-lf files, making embedded
-e = command in string
s/x/y/g = substitute x by y. g = all of them
s/\0//g = replace all binary zeroes by nothing
s/\r//g = replace all carriage-return bu nothing.
Enjoy!
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 06:51 PM
тАО05-14-2009 06:51 PM
Re: Hide control characters in TPU
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:
http://labs.hoffmanlabs.com/node/875
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.
http://h71000.www7.hp.com/wizard/wiz_7842.html
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 11:27 PM
тАО05-14-2009 11:27 PM
Re: Hide control characters in TPU
You edit your file with eve.
You take a second buffer with this procedure (get xxx). Then extend this buffer by going to command line of eve and doing "ext *".
Then place the cursor in the dirty file buffer. Go to the command line and give "tpu eve_clear_nonprint".
Note : this removed the nonprints and the file could be unusable afterwards.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 09:13 AM
тАО05-15-2009 09:13 AM
Re: Hide control characters in TPU
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.
I use SET HOST/LOG (and if necessary TELNET/LOG) for documentation and reference purposes.
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
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. http://unix.derkeiler.com/Newsgroups/comp.os.vms/2006-03/msg00493.html.
I have tried both on Eisner and on Alpha and Integrity systems at a customer site.
I have used SmartTerm, eXcursion, and Putty. At my last customer I used eXcursion and sometimes SmartTerm.
I had a former co-worker send me a $SHOW TERM and set my terminal to match and still no joy.
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.
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.
Thanks,
Michelle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 09:39 AM
тАО05-15-2009 09:39 AM
Re: Hide control characters in TPU
>1) $ CONVERT/FDL="REC; FORM STREAM" sethost.log sethost.txt
That did strip the
>2) $ perl -pe "s/\0//g;s/\r//g" sethost.log > sethost.txt
I know this will be like sacrilege to you, but I don't have perl set up?
At any rate, I'd rather not strip the codes out altogether.
Thanks for the suggestions though.
Cheers,
Michelle