- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem using arrow key for History
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
10-17-2000 07:55 PM
10-17-2000 07:55 PM
Problem using arrow key for History
I'm having some problem with using arrow key for retrieving history command.
I've the HISTFILE and HISTSIZE defined in my profile and the .sh_history is capture the entry of the history command.
However, whenever I use the arrow key, instead of throwing out the previou command. ^[[A sort of key is shown.
Is there any way that I can specifically use the arrow keys for this purpose?
Thanks.
Han Ming
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2000 10:33 PM
10-17-2000 10:33 PM
Re: Problem using arrow key for History
export EDITOR=vi
Then you can use the vi keys...
EG: Esc [h,j,k,l]
Carlo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2000 12:08 AM
10-18-2000 12:08 AM
Re: Problem using arrow key for History
The only way that I've managed to do this is to remap the arrow keys in my terminal emulator (Reflections).
h,j,k and l if you use vi mode or
Unfortunately, this means that the arrow keys don't then work in the likes of SAM.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2000 12:35 AM
10-18-2000 12:35 AM
Re: Problem using arrow key for History
As far as i know its only bash that support the up/down arrows for command retrieving in normal emulation modes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2000 01:41 AM
10-18-2000 01:41 AM
Re: Problem using arrow key for History
Why don't use the "bash" shell ?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2000 05:07 AM
10-18-2000 05:07 AM
Re: Problem using arrow key for History
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2000 04:31 PM
10-18-2000 04:31 PM
Re: Problem using arrow key for History
Alternatively you can also try $ksh -o vi at shell prompt OR define it in /etc/profile or ~/.profile. Use ESC k and J keys to see history of commands issued at shell prompt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2000 05:53 PM
10-18-2000 05:53 PM
Re: Problem using arrow key for History
Thanks for the reply.
Please kindly correct me if I've misunderstood any of the advice.
I suppose the Esc h,j,k,l can be use for history.
However, even when use the Esc key, immediately when I press on the Esc key the
^[
is shown on screen, doesn't seem like Esc is working too.
Sorry if I have miss out something very basic and obvious.
Thanks.
Han Ming
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2000 06:20 PM
10-18-2000 06:20 PM
Re: Problem using arrow key for History
May be problem with TERM type, try with
#export TERM=hp
or
#export TERM=vt100
etc may solve the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2000 05:54 PM
10-19-2000 05:54 PM
Re: Problem using arrow key for History
Maybe I'll try to set the user shell to bash while using sh for admin user.
Thanks again.
Han Ming
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2000 01:55 AM
10-20-2000 01:55 AM
Re: Problem using arrow key for History
Regards