Operating System - Tru64 Unix
1753559 Members
6001 Online
108796 Solutions
New Discussion юеВ

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 6
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.