| 1 |
# ------------------------------------------------------------------------------ |
| 2 |
# SCREEN SETTINGS |
| 3 |
# ------------------------------------------------------------------------------ |
| 4 |
|
| 5 |
startup_message off |
| 6 |
|
| 7 |
#defflow on # will force screen to process ^S/^Q |
| 8 |
deflogin on |
| 9 |
autodetach on |
| 10 |
|
| 11 |
# turn visual bell on |
| 12 |
vbell on |
| 13 |
|
| 14 |
# define a bigger scrollback, default is 100 lines |
| 15 |
defscrollback 2048 |
| 16 |
|
| 17 |
# ------------------------------------------------------------------------------ |
| 18 |
# SCREEN KEYBINDINGS |
| 19 |
# ------------------------------------------------------------------------------ |
| 20 |
|
| 21 |
# Remove some stupid / dangerous key bindings |
| 22 |
bind ^k |
| 23 |
#bind L |
| 24 |
bind ^\ |
| 25 |
# Make them better |
| 26 |
bind \\ quit |
| 27 |
bind K kill |
| 28 |
bind I login on |
| 29 |
bind O login off |
| 30 |
bind } history |
| 31 |
|
| 32 |
# Sessions should stay until destroyed by pressing q |
| 33 |
zombie 'q' |
| 34 |
|
| 35 |
# ------------------------------------------------------------------------------ |
| 36 |
# TERMINAL SETTINGS |
| 37 |
# ------------------------------------------------------------------------------ |
| 38 |
|
| 39 |
# The vt100 description does not mention "dl". *sigh* |
| 40 |
termcapinfo vt100 dl=5\E[M |
| 41 |
|
| 42 |
# Set the hardstatus prop on gui terms to set the titlebar/icon title |
| 43 |
termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007:OP |
| 44 |
|
| 45 |
# set these terminals up to be 'optimal' instead of vt100 |
| 46 |
#termcapinfo xterm*|linux*|rxvt*|Eterm* OP |
| 47 |
|
| 48 |
# Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E> |
| 49 |
# (This fixes the "Aborted because of window size change" konsole symptoms found |
| 50 |
# in bug #134198) |
| 51 |
termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l' |
| 52 |
|
| 53 |
# To get screen to add lines to xterm's scrollback buffer, uncomment the |
| 54 |
# following termcapinfo line which tells xterm to use the normal screen buffer |
| 55 |
# (which has scrollback), not the alternate screen buffer. |
| 56 |
# |
| 57 |
termcapinfo xterm|xterms|xs|rxvt ti@:te@ |
| 58 |
|
| 59 |
# Add caption line with clock, window title and window flags. |
| 60 |
caption always "%{b bG}%c%=%t%=%f" |
| 61 |
|
| 62 |
# Catch zmodem file transfers |
| 63 |
zmodem catch |