- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Embed ASCII Characters in text file
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
Forums
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
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
тАО06-09-2003 01:49 PM
тАО06-09-2003 01:49 PM
Embed ASCII Characters in text file
Thanks for looking
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2003 02:00 PM
тАО06-09-2003 02:00 PM
Re: Embed ASCII Characters in text file
echo "\033"TEST01
2-
file way
vi TEST_FILE
i
^V[esc key]TEST01
[ESC key]:w!
cat TEST_FILE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2003 02:01 PM
тАО06-09-2003 02:01 PM
Re: Embed ASCII Characters in text file
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2003 02:33 PM
тАО06-09-2003 02:33 PM
Re: Embed ASCII Characters in text file
NUMBER OF TERMINALS: 2
TERMINAL NAME: TTY A
TERMINAL DEVICE: /dev/tty0p0
TERMINAL iflag: ICRNL |IXOFF |IXON
(all the rest of the TERMINAL settings)
Open relay string: ESCTEST1OFF
Close relay string: ESCTEST1ON
(relay 2 - 8 the same)
The text after the colon gets sent out the appropriate serial port. I can edit the file using vi or any editor.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2003 02:54 PM
тАО06-09-2003 02:54 PM
Re: Embed ASCII Characters in text file
type CNTRL-V and then type ESC key. You will see a ^[ in your screen that is teh esc (0x1b , 033 octal) char
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2003 02:55 PM
тАО06-09-2003 02:55 PM
Re: Embed ASCII Characters in text file
Position the cursor at the desired insertion point:
Press "i" to enter Insertion Mode.
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.
Press ESCAPE (or any other desired control char)
Press ESCAPE again to end the insert.
:w to save the file
:q to exit vi.
You can check you work (if you don't trust the vi display) using od -c myfile.