- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Entering hexadecimal characters in vi
Operating System - HP-UX
1753469
Members
5007
Online
108794
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-16-2001 01:31 PM
06-16-2001 01:31 PM
Hi,
can any one help me out how to enter the hexadecimal characters in vi editor such as hex(A2,A4) in one site they have mentioned that you have to get teh key strokes that will make up this charactes which are equivalent to this but I can't get any can any body help
Thanks in advance.
can any one help me out how to enter the hexadecimal characters in vi editor such as hex(A2,A4) in one site they have mentioned that you have to get teh key strokes that will make up this charactes which are equivalent to this but I can't get any can any body help
Thanks in advance.
Nirupam
Solved! Go to Solution.
- Tags:
- vi
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2001 03:31 PM
06-16-2001 03:31 PM
Solution
You can use the Ctrl-V ket to quote special characters in vi but entering values above
decimal 127 is difficult. If you know the keyboard mapping to generate the A2 hex code then you would (while in insert mode in vi)
enter Ctrl-V, your combination of keys, then ESC to end the insert.
But there is a better way and you don't have to know the keyboard mapping of your particular terminal:
Use two text files file1 - with your hex codes
build like this:
echo "\0242\0244\c" > file1
This will create a two byte file with the octal values 242 (A2h) and 244 (A4h).
Now in your main file (e.g. file2) You enter whatever text you want and position the cursor at the desired point and do a :r file1 to read the two characters into your file. You can then copy and move them wherever you like.
This should fix you, Clay
decimal 127 is difficult. If you know the keyboard mapping to generate the A2 hex code then you would (while in insert mode in vi)
enter Ctrl-V, your combination of keys, then ESC to end the insert.
But there is a better way and you don't have to know the keyboard mapping of your particular terminal:
Use two text files file1 - with your hex codes
build like this:
echo "\0242\0244\c" > file1
This will create a two byte file with the octal values 242 (A2h) and 244 (A4h).
Now in your main file (e.g. file2) You enter whatever text you want and position the cursor at the desired point and do a :r file1 to read the two characters into your file. You can then copy and move them wherever you like.
This should fix you, Clay
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP