- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Using Arrow keys to view previous commands in a bo...
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
06-12-2002 11:19 PM
06-12-2002 11:19 PM
I'm trying to set arrow keys for bourne-like shell. People told that i need to add next lines in my .shrc(or .kshrc)
HISTFILE = $HOME/.sh_history
histsize =512
set -o emacs
alias __A = ^P
alias __B = ^N
alias __C = ^F
alias __D = ^B
I did it.But it doesn't work for me. What's wrong? Do i need to adjust also in some way my terminal settings?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2002 11:26 PM
06-12-2002 11:26 PM
Re: Using Arrow keys to view previous commands in a bourne shell
What shell are you using? Bourne shell has no command line history.
On HP-UX, the /usr/bin/sh binary is a POSIX compliant shell (like ksh).
Bye,
Rik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2002 11:52 PM
06-12-2002 11:52 PM
Re: Using Arrow keys to view previous commands in a bourne shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 12:24 AM
06-13-2002 12:24 AM
Re: Using Arrow keys to view previous commands in a bourne shell
If you are using a terminal emulator like Reflections then you can map the keyboard for emacs edit mode...
up arrow sends CTRL/P,
down arrow sends CTRL/N,
left arrow sends CTRL/B
right arrow sends CTRL/F.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 12:45 AM
06-13-2002 12:45 AM
SolutionTry this:
# vi /tmp/emacsalias
alias __A=^P
...
BUT: To enter the '^P' use the keystrokes
This enters a control character into the file. Do the same for the other aliases.
Finally, source in your file:
. /tmp/emacsalias
And all should work!! (I tried it and OK)
Bye,
Rik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 12:52 AM
06-13-2002 12:52 AM
Re: Using Arrow keys to view previous commands in a bourne shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 01:54 AM
06-13-2002 01:54 AM
Re: Using Arrow keys to view previous commands in a bourne shell
it works! but i put it directly to .shrc file.
Many thanks,
Kirill