Right now I have the following line in my
~/.screenrc so I can scroll back and see the output for a screen window:
termcapinfo xterm ti@:te@
Now that I am editing in
vim, I would like to use my mouse for scrolling inside vim, not in the terminal scrollback. Is there a way to disable the terminal scrollback at runtime?
screenrc manual page mentions that
termcapinfo cannot be changed once started:
You have to place these commands in one of the screenrc startup files, as they are meaningless once the terminal emulator is booted.
... so that cannot be relied on. Reasonable hacks are also fine, I am using the Konsole terminal emulator.