Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting previous commands using up arrows

SOLVED
Go to solution
MahdiRa
Frequent Advisor

Getting previous commands using up arrows

Dear all,,,
i have tru64 version 4.0f and i need to use the up and down arrows to get the previos commands
i but the "set -o vi" then i could use the esc with k to get the previous commands but i need to use the arrows
thx for help
Mahdi
6 REPLIES
Vladimir Fabecic
Honored Contributor

Re: Getting previous commands using up arrows

Why not doing "set -o emacs" (if you use ksh) instead of "set -o vi". Than you can use the arrows.
In vino veritas, in VMS cluster
MahdiRa
Frequent Advisor

Re: Getting previous commands using up arrows

Dear Vladimir
currently am using it but i need also to know how to use it with vi
Mahdi
Venkatesh BL
Honored Contributor
Solution

Re: Getting previous commands using up arrows

I doubt if this can be easily accomplished, as vi defaults to 'k' for scrolling up.
Vladimir Fabecic
Honored Contributor

Re: Getting previous commands using up arrows

BL may be right. It also depends on terminal type. Maybe "stty" can help but not sure how.
In vino veritas, in VMS cluster
MahdiRa
Frequent Advisor

Re: Getting previous commands using up arrows

Ok Thx for you all this means that you are sugesting to continue with "emacs" so i will do
Mahdi
Venkatesh BL
Honored Contributor

Re: Getting previous commands using up arrows

If you have the 'bash' shell installed (open source), use it - that uses the arrows for recalling command history.