We help IT Professionals succeed at work.

AIX: my arrow keys or tab not working. How do I enable?

epifanio67
epifanio67 asked
on
Hello Experts,

my arrow keys or tab not working. How do I enable?

thanks,
Comment
Watch Question

CERTIFIED EXPERT

Commented:
Do you mean on the shell?

Which shell are you using?
CERTIFIED EXPERT
Most Valuable Expert 2013
Top Expert 2013
Commented:
AIX uses ksh by default.


To make the arrow keys work you need to have the following aliases defined:

alias __A=$(echo "\020")   # up arrow = ^p
alias __B=$(echo "\016")   # down arrow = ^n
alias __C=$(echo "\006")   # right arrow = ^f
alias __D=$(echo "\002")   # left arrow = ^b

Set these aliases in /etc/profile or your personal .profile and add

set -o emacs

to the respective file, and logout and re-login.

wmp
CERTIFIED EXPERT
Commented:
I have these
# Setting History by arrow keys
alias __A=`echo "\020"` # up arrow = ^p = back a command
alias __B=`echo "\016"` # down arrow = ^n = down a command
alias __C=`echo "\006"` # right arrow = ^f = forward a character
alias __D=`echo "\002"` # left arrow = ^b = back a character
alias __H=`echo "\001"` # home = ^a = start of line
alias __z=`echo "\017"` # send ^o and use z to list after the others
alias __I=`echo "\008"` # home = ^a = start of line
CERTIFIED EXPERT
Most Valuable Expert 2013
Top Expert 2013

Commented:
File name completion is achieved by hitting <ESC> twice, by the way.

Author

Commented:
thank you experts....

Explore More ContentExplore courses, solutions, and other research materials related to this topic.