Advertisement
Guest User

screenrc

a guest
Aug 7th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.56 KB | None | 0 0
  1. chdir ${HOME}
  2.  
  3. altscreen on # Don't keep content of a `vim' or else
  4. autodetach on # Detach if SIGHUP
  5. # deflogin off # Don't register the window in utmp
  6. defmode 0600 # Set the default mode of each pseudo tty
  7. defnonblock on # Don't freeze the whole screen waiting
  8. defscrollback 1024 # Set the default number of scrollback lines
  9. defshell -${SHELL} # Set the shell to the top shell
  10. hardstatus off
  11. monitor on # Monitor the above shell window
  12. nethack off #
  13. startup_message off # Disable startup messages
  14. vbell on # Visual bell
  15. defutf8 on
  16.  
  17. vbell_msg "-*- beep -*- on %t (%n)"
  18. activity "-*- activity -*- on %t (%n)"
  19.  
  20. # -----------------------------------------------------------------------------
  21. # Remove all default bindings that we won't use
  22. # -----------------------------------------------------------------------------
  23. bind "'" # disable 'select'
  24. bind * # disable 'displays'
  25. bind , # disable 'license'
  26. bind . # disable 'dumptermcap'
  27. bind < # disable 'readbuf'
  28. bind = # disable 'removebuf'
  29. bind > # disable 'writebuf'
  30. bind A # disable 'title'
  31. bind B # disable 'pow_break'
  32. bind D # disable 'pow_detach'
  33. bind F # disable 'fit'
  34. bind H # disable 'log'
  35. bind K # disable 'kill'
  36. bind M # disable 'monitor'
  37. bind N # disable 'number'
  38. bind Q # disable 'only'
  39. bind S # disable 'split'
  40. bind W # disable 'width'
  41. bind X # disable 'remove'
  42. bind Z # disable 'reset'
  43. bind [ # disable 'copy'
  44. bind \ # disable 'quit'
  45. bind ] # disable 'paste .'
  46. bind _ # disable 'silence'
  47. bind b # disable 'break'
  48. bind f # disable 'flow'
  49. bind h # disable 'hardcopy'
  50. bind k # disable 'kill'
  51. bind l # disable 'refresh'
  52. bind q # disable 'xon'
  53. bind s # disable 'xon'
  54. bind v # disable 'version'
  55. bind w # disable 'focus'
  56. bind x # disable 'lockscreen'
  57. bind z # disable 'suspend'
  58. bind { # disable 'history'
  59. bind | # disable 'split -v'
  60. bind } # disable 'history'
  61. bind " " # disable 'next'
  62. bind ^? # disable 'prev'
  63. bind ^@ # disable 'next'
  64. bind ^B # disable 'break'
  65. bind ^C # disable 'create'
  66. bind ^D # disable 'detach'
  67. bind ^F # disable 'flow'
  68. bind ^G # disable 'vbell'
  69. bind ^H # disable 'prev'
  70. bind ^I # disable 'focus'
  71. bind ^L # disable 'refresh'
  72. bind ^M # disable 'lastmsg'
  73. bind ^N # disable 'next'
  74. bind ^P # disable 'prev'
  75. bind ^Q # disable 'xoff'
  76. bind ^R # disable 'wrap'
  77. bind ^S # disable 'xon'
  78. bind ^T # disable 'time'
  79. bind ^V # disable 'digraph'
  80. bind ^W # disable 'window'
  81. bind ^X # disable 'lockscreen'
  82. bind ^[ # disable 'copy'
  83. bind ^] # disable 'paste .'
  84. bind ^k # disable 'kill'
  85.  
  86. # -----------------------------------------------------------------------------
  87. # Add new bindings
  88. # -----------------------------------------------------------------------------
  89. bind B copy # add 'copy': enable buffer view up / down
  90. bind ^I focus # add 'focus': tab to switch window
  91. bind ^C kill # add 'kill': kill the current window
  92. bind b vbell # add 'vbell': enable/disable visual bell
  93. # bind j only # add 'kill': kill the current window
  94. bind m monitor # add 'monitor': monitor activity
  95. bind r redisplay # refresh screen
  96. bind t title # change name of window
  97. # bind s split # add 'split'
  98. bind w displays # show windows
  99. # bind ^X lockscreen # lock the screen with $LOCKPRG
  100.  
  101. bind = resize =
  102. bind + resize +1
  103. bind - resize -1
  104. bind _ resize max
  105.  
  106. # -----------------------------------------------------------------------------
  107. # Terminal settings
  108. # -----------------------------------------------------------------------------
  109. # all termcap entries are now duplicated as terminfo entries.
  110. # only difference should be the slightly modified syntax, and check for
  111. # terminfo entries, that are already corected in the database.
  112. #
  113. # AB (setab) = Set background color (ANSI compatible)
  114. # AF (setaf) = Set foreground color (ANSI compatible)
  115. # AX = Set ANSI support with default fg/bg color (\E[39m / \E[49m)
  116. # WS = This sequence resizes our window
  117.  
  118. # Allow PuTTY to use colors
  119. termcapinfo putty* XT
  120. termcapinfo putty* OP
  121. termcapinfo putty* LP:G0
  122. termcapinfo putty* 'setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m'
  123. termcapinfo putty* 'setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m'
  124.  
  125. # PuTTY has function keys F1->F4
  126. termcapinfo putty* 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
  127.  
  128. # -----------------------------------------------------------------------------
  129. # Window titles
  130. # -----------------------------------------------------------------------------
  131. # Every x seconds, requery window title
  132. backtick 1 600 600 id -un
  133. backtick 2 600 600 hostname
  134.  
  135. # screensaver
  136. # idle 200 eval "screen cmatrix -x -b" "idle 0"
  137.  
  138. # The window's title
  139. hardstatus ignore
  140. hardstatus string "%1`@%2`"
  141.  
  142. caption always
  143. caption string "%{= KW}%-w%{= wk}%50>%n %t%{-}%+w%< %=%H %l"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement