- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Use Arrow keys to view previous commands in a unix...
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
03-21-2001 03:38 PM
03-21-2001 03:38 PM
I want to map my arrow keys so that I can use it to scroll to previous commands.
The shell I am using is ksh. Presently I use ESC K to view my previous commands. Is there any way I can map my keyboard.
OS : HP-UX ver 11.00
Shell : /usr/bin/ksh
Thanks in advance
Bala
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2001 03:50 PM
03-21-2001 03:50 PM
Re: Use Arrow keys to view previous commands in a unix shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2001 03:54 PM
03-21-2001 03:54 PM
Re: Use Arrow keys to view previous commands in a unix shell
I am aware that this can be done in bash shell. But can it be done in ksh
Thanks
Bala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2001 07:23 PM
03-21-2001 07:23 PM
Re: Use Arrow keys to view previous commands in a unix shell
This can be done in ksh using the emacs editor, if you have it.
i.e.
set -o emacs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2001 10:56 PM
03-21-2001 10:56 PM
Re: Use Arrow keys to view previous commands in a unix shell
Sorry for using this way to try to find something out.
Is your real name Balasubramanya or something ?
This nickname sounds familiar to me.
Please check my forum profile. If you are the person, i think you are, please contact me.
Email : Alexander_Ermes@ web.de
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 05:14 AM
03-22-2001 05:14 AM
Re: Use Arrow keys to view previous commands in a unix shell
vi junkfile
hit i to insert, type control-v, then the up arrow key.
Then you will probably see something like ^[[A.
So now you know the up arrow is escape[A.
Somehow you would map escape[A to change to escape k. In normal vi, you would modify $HOME/.exrc file to add a "map command". But for everyone with command shell editing? I don't know. Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2001 01:22 AM
03-25-2001 01:22 AM
Solutionhere is the mapping if you use Emacs-style editing...
alias -x __A=^P #
alias -x __B=^N #
alias -x __C=^F #
alias -x __D=^B #
alias -x __H=^H #
alias -x __P=^D # Ctrl-D: Delete character forward
alias -x __q=^E #
You need to enter the control keys carefully...
e.g. $(echo '\016') for ^P
In ksh93 (dtksh) you can also use the above, or use the KBD trap which will also work in vi mode. For details see the newsgroup discusson at:
http://groups.google.com/groups?hl=en&lr=&safe=off&ic=1&th=bee009ab2ea86936&seekd=991501790#991501790