Bug#948761: screen: improve examples in /etc/screenrc

2020-01-12 Thread Christoph Anton Mitterer
Oops... doesn't seem to work if the keycode is single-quoted, so it
would need to read:

#hotkeys for Ctrl+PageUp/Ctrl+PageDown navigation in screen’s
copy/scrollback mode

#scroll the display up/down by a half screen
#bindkey "^[[5;5~" eval 'copy' 'stuff ^u'
#bindkey "^[[6;5~" eval 'copy' 'stuff ^d'

#scroll the display up/down by a full screen
#bindkey "^[[5;5~" eval 'copy' 'stuff ^b'
#bindkey "^[[6;5~" eval 'copy' 'stuff ^f'


Cheers,
Chris.



Bug#948761: screen: improve examples in /etc/screenrc

2020-01-12 Thread Christoph Anton Mitterer
Package: screen
Version: 4.7.0-1
Severity: wishlist


Hi.

Currently /etc/screenrc contains:
#termcapinfo xterm|xterms|xs|rxvt ti@:te@


This could perhaps be improved to:
#termcapinfo xterm*|xs|rxvt ti@:te@

(right now e.g. xterm-256color isn't matched)


Also, right below it, the following could be added:

#hotkeys for Ctrl+PageUp/Ctrl+PageDown navigation in screen’s copy/scrollback 
mode

#scroll the display up/down by a half screen
#bindkey '^[[5;5~' eval 'copy' 'stuff ^u'
#bindkey '^[[6;5~' eval 'copy' 'stuff ^d'

#scroll the display up/down by a full screen
#bindkey '^[[5;5~' eval 'copy' 'stuff ^b'
#bindkey '^[[6;5~' eval 'copy' 'stuff ^f'


These seem to work nicely in addition to disabling the alternate screen buffer
(which allows scrolling in the terminal, but not if the output was made while
the session wasn't attached and thus copy/scrollback mode needs to be used 
again)


Cheers,
Chris.