- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Key mapping in .profile
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
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
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
04-25-2002 02:39 AM
04-25-2002 02:39 AM
Is there any way to map keys in a .profile file. I specifically want to map function keys.
thanks in advance,
Christian Briddon
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 02:54 AM
04-25-2002 02:54 AM
Re: Key mapping in .profile
xmodmap -e "keycode ## =
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 02:56 AM
04-25-2002 02:56 AM
Re: Key mapping in .profile
Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 03:17 AM
04-25-2002 03:17 AM
Re: Key mapping in .profile
you might be talking about "bash" as used on Linux systems, but we do not have that functionality in POSIX-sh or Korn-sh under HP-UX...
Sorry,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 03:49 AM
04-25-2002 03:49 AM
Re: Key mapping in .profile
maybe teminfo definitions ( see man tic, terminfo)
or maybe keysh ( see man sh, man 1 keysh) ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 04:49 AM
04-25-2002 04:49 AM
Re: Key mapping in .profile
If you want the Bourne again shell (bash) functionality that exists in linux (ie: up arrow etc.) you will have to install bash.
You can get it from one of the software porting and archive areas. Advise on getting it is easy, but take care using it it is CHUNKY and a bit of a slow shell!
MND
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 04:36 AM
04-26-2002 04:36 AM
Re: Key mapping in .profile
If so, the application may have an alterative key sequence for you.
For example: I have an application called pcmiler. It lets me use control-f 2 as the f2 key.
Do you want to map the function keys because you have a pile of users with a special key in their application?
If so, perhaps you could look at what they use to get into the application. A few jobs ago I was "tasked" to get the "gold-select-backout-key" to work. This key was the "end" key on the PC. I had to map it to "escape _ 1 \ escape 0". I know that's pretty goofy. But it was easy. The terminal emulator they used allowed me to map keys. And the vi command allowed me to see the weird junk the "end" key was supposed to send.
Both cases here, did not mess with terminfo. I just tried to avoid it, becuase I did not want to hurt what was already working fine.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 04:55 AM
04-26-2002 04:55 AM
Re: Key mapping in .profile
The reason I need to do this is because an application needs the function keys and the arrow keys.
They apparently use DEC type keys.
If we connect to our server with a terminal emulator we can map the keys but if we connect via a winterm wqe can not.
Cheers,
Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 05:42 AM
04-26-2002 05:42 AM
Re: Key mapping in .profile
Check out this thread, I also pushed the bash here, mainly cuz I am lazy ;-)
But it may help.....
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc59f03bbece8d5118ff40090279cd0f9,00.html
MND
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 06:07 AM
04-26-2002 06:07 AM
SolutionDon't use winterm. Use something that allows you to map keys. Find a terminal emulator that's works in windows, that's free, that lets you modify the keys. I have a free thing called Tera Term. It uses keymap files.
Now about the keys though. You say your terminial emulator work right? Ok. Log in, vi a bogus file. Type i for insert. Type control-v, the a key (like the up arrow), you will see the text that comes out when you hit that key.
For me it's ^[[A which is....
I take it this bash thing would allow you to.?????
alias UPARROW="^[[A" ??
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 06:28 AM
04-26-2002 06:28 AM
Re: Key mapping in .profile
bash -- the bourne again shell, was ported from linux (I believe). Yes, it has arrow character mapping for the HISTORY instead of the old ESC-K, and no h-j-k-l for editing of HISTORY. ESC-ESC for predictive text is now
It has a number of other features, which I have not fully used, not even sure *how* much character/key mapping is there, but, as I stated, it is chunky and a wee bit slow (it is very large)
MND
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 06:33 AM
04-26-2002 06:33 AM
Re: Key mapping in .profile
I was just using the uparrow key as an example. I guess I should have used the F6 key instead. (
or the F10 (