2008年4月9日星期三

在X终端中screen不能使用PageUp/PageDown的解决方法

执行此代码:
echo 'termcapinfo xterm|xterms|xs|rxvt ti@:te@' > ~/.screenrc
Debian Screen Q&A
-----------------

Q: shift+page up in xterm/gnome-terminal/konsole used to let me scroll back a
bit, but now it doesn't. How can I make it work with scrollback?

A: It doesn't scrollback consistently because screen (the program) displays in
xterm's alternate screen buffer.

To have screen use xterm's normal screen buffer (which includes scrollback),
you can add the following to your .screenrc:
termcapinfo xterm|xterms|xs|rxvt ti@:te@

1 条评论: