5

I added the following line to my .screenrc script such that I can use my mouse to scroll up and down in the terminal when the output is too large and long. However, when I try to source .screenrc script. It complains that termcapinfo command not found.

termcapinfo xterm ti@:te@

I have no idea what went wrong ? Why is this happening ?

1 Answer 1

8

You should not source it. The file .screenrc is read and interpreted by screen at start up.

Moreover please note that termcapinfo xterm ti@:te@ will work only if your terminal set $TERM variable to xterm. In other case

termcapinfo xterm*|rxvt*|kterm*|Eterm* ti@:te@

is probably more universal solution.

There is also possibility to scroll by keyboard shortcut Ctrl-a ESC and then use up-down arrows.

10
  • okay. I added termcapinfo xterm ti@:te@ . But I wasn't able to scroll up to see all the output . Why is this ? Commented Sep 3, 2014 at 17:21
  • 1
    Which terminal do you use? Also echo $TERM will be usefull.
    – jimmij
    Commented Sep 3, 2014 at 17:36
  • I am using Mac Terminal Version 2.4 (326). echo $TERM gives xterm-256color. Commented Sep 3, 2014 at 18:00
  • 1
    So use termcapinfo xterm-256color ti@:te@ instead or even better termcapinfo xterm*|rxvt*|kterm*|Eterm*|screen* ti@:te@
    – jimmij
    Commented Sep 3, 2014 at 18:09
  • Yes. But how can I scroll up and down in only one screen ? Because I am currently in the 'screen' mode with the terminal printing the output of my python script on the left hand side and the python script(vim ) on right hand side. Is this even possible ? Thanks Commented Sep 3, 2014 at 18:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .