Using the scrollwheel in GNU Screen

iccid·2021년 10월 15일
0

Linux

목록 보기
2/5

Q.
How can I setup GNU screen to allow the mouse's scrollwheel to scroll around in the scrollback buffer? I tried to Google about this, but most hits were on how to allow applications inside screen to use the scrollwheel.

A.
Add as below to file ~/.screenrc

termcapinfo xterm* ti@:te@

or

termcapinfo * ti@:te@

additionally, add as below to file ~/.bashrc

# make scrollbar / wheel scrolling work when running screen in gnome-terminal (or other)
if [ "$TERM" = "xterm" ]; then
  export TERM=vt100
fi

0개의 댓글