向上的箭头是什么呢?

airzhu
向上的箭头是什么呢?

stty -a
speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^/; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;





每次想显示上次使用过的命令,但是都是这么显示

^[[A

怎么才可以正常显示呢?

waker
这个是交互软件提供的功能,比如bash和vi,不是用stty设置的

網中人
一般在操作上,是 ctrl 鍵。

寂寞烈火
看看/etc/inputrc

angeljyt
ctrl键:mrgreen:

airzhu
[quote]原帖由 [i]寂寞烈火[/i] 于 2008-6-30 17:19 发表 [url=http://bbs.chinaunix.net/redirect.php?goto=findpost&pid=8704612&ptid=1184624][img]http://bbs.chinaunix.net/images/common/back.gif[/img][/url]
看看/etc/inputrc [/quote]


$ cat /etc/inputrc
# do not bell on tab-completion
#set bell-style none

set meta-flag on
set input-meta on
set convert-meta off
set output-meta on

# Completed names which are symbolic links to
# directories have a slash appended.
set mark-symlinked-directories on

$if mode=emacs

# for linux console and RH/Debian xterm
"/e[1~": beginning-of-line
"/e[4~": end-of-line
"/e[5~": beginning-of-history
"/e[6~": end-of-history
"/e[3~": delete-char
"/e[2~": quoted-insert
"/e[5C": forward-word
"/e[5D": backward-word
"/e[1;5C": forward-word
"/e[1;5D": backward-word

# for rxvt
"/e[8~": end-of-line

# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
"/eOH": beginning-of-line
"/eOF": end-of-line

# for freebsd console
"/e[H": beginning-of-line
"/e[F": end-of-line
$endif