我有一个全新安装的Ubuntu Server 11.10,我通过PuTTy登录SSH.当我在屏幕内部时,我无法使用向上箭头来调用bash历史记录(尽管这可以在屏幕外工作).我似乎无法在Interwebs上找到完全相同的问题(尽管许多类似的问题).我的.screenrc如下:
# Look and feel caption always "%{= bb}%{+b w}Screen: %n | %h %=%t %c" hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<" # Our warning of activity activity "Activity in %t(%n)" # Left Right Meta key mods #ALT-,. and ALT-<> bindkey "^[<" eval number !echo $WINDOW-1|bc bindkey "^[>" eval number !echo $WINDOW+1|bc bindkey "^[," prev bindkey "^[." next #disable startup banner startup_message off #see http://www4.informatik.uni-erlangen.de/~jnweiger/screen-faq.html termcap xterm 'XT:AF=\E[3%dm:AB=\E[4%dm:AX' terminfo xterm 'XT:AF=\E[3%p1%dm:AB=\E[4%p1%dm:AX' termcapinfo xterm 'XT:AF=\E[3%p1%dm:AB=\E[4%p1%dm:AX:hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007' termcap xtermc 'XT:AF=\E[3%dm:AB=\E[4%dm:AX' terminfo xtermc 'XT:AF=\E[3%p1%dm:AB=\E[4%p1%dm:AX' termcapinfo xtermc 'XT:AF=\E[3%p1%dm:AB=\E[4%p1%dm:AX:hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007' #scrollback termcapinfo xterm ti@:te@ shell -$SHELL
更新:
向上箭头在其他应用程序(如vim和更少)中正常工作.在物理控制台以及PuTTy中会出现此问题.
我有类似的问题.原来我创建的用户帐户没有默认的shell设置.
原文链接:https://www.f2er.com/bash/385620.html