Advertisement
Guest User

Untitled

a guest
Oct 30th, 2011
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.00 KB | None | 0 0
  1. #
  2. # drkvg's commented .screenrc
  3. #
  4.  
  5. ### screen as an answering machine!
  6. #
  7. # no annoying audible bell, please
  8. vbell on
  9. vbell_msg "Hey - something's ringing on %t (%n)"
  10. activity "Hey - something's moving in %t(%n)"
  11.  
  12. ### detaching/reattaching
  13. #
  14. # detach on hangup
  15. autodetach on
  16. # This is how one can set a reattach password:
  17. # password ODSJQf.4IJN7E # "1234"
  18.  
  19.  
  20. ### logging in/off
  21. #
  22. # don't display the copyright page
  23. startup_message off
  24.  
  25. # emulate .logout message
  26. pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
  27.  
  28. # don't kill window after the process died
  29. # zombie "^["
  30.  
  31. ################
  32. #
  33. # xterm tweaks
  34. #
  35.  
  36. #xterm understands both im/ic and doesn't have a status line.
  37. #Note: Do not specify im and ic in the real termcap/info file as
  38. #some programs (e.g. vi) will not work anymore.
  39. termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
  40. terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
  41.  
  42. #80/132 column switching must be enabled for ^AW to work
  43. #change init sequence to not switch width
  44. termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
  45.  
  46. # Make the output buffer large for (fast) xterms.
  47. #termcapinfo xterm* OL=10000
  48. termcapinfo xterm* OL=100
  49.  
  50. # tell screen that xterm can switch to dark background and has function
  51. # keys.
  52. termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
  53. termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
  54. termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
  55.  
  56. # special xterm hardstatus: use the window title.
  57. termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
  58.  
  59. #terminfo xterm 'vb=\E[?5h$<200/>\E[?5l'
  60. termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
  61.  
  62. # emulate part of the 'K' charset
  63. termcapinfo xterm 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
  64.  
  65. # xterm-52 tweaks:
  66. # - uses background color for delete operations
  67. termcapinfo xterm* be
  68.  
  69. ################
  70. #
  71. # wyse terminals
  72. #
  73.  
  74. #wyse-75-42 must have flow control (xo = "terminal uses xon/xoff")
  75. #essential to have it here, as this is a slow terminal.
  76. termcapinfo wy75-42 xo:hs@
  77.  
  78. # New termcap sequences for cursor application mode.
  79. termcapinfo wy* CS=\E[?1h:CE=\E[?1l:vi=\E[?25l:ve=\E[?25h:VR=\E[?5h:VN=\E[?5l:cb=\E[1K:CD=\E[1J
  80.  
  81. ################
  82. #
  83. # other terminals
  84. #
  85.  
  86. # make hp700 termcap/info better
  87. termcapinfo hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62"p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61"p:ds=\E[62"p\E[1$~\E[61"p:ic@'
  88.  
  89. # Extend the vt100 desciption by some sequences.
  90. termcap vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC
  91. terminfo vt100* ms:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC
  92. termcapinfo linux C8
  93. # old rxvt versions also need this
  94. # termcapinfo rxvt C8
  95.  
  96.  
  97. ################
  98. #
  99. # keybindings
  100. #
  101.  
  102. #remove some stupid / dangerous key bindings
  103. bind k
  104. bind ^k
  105. bind .
  106. bind ^\
  107. bind \\
  108. bind ^h
  109. bind h
  110. #make them better
  111. bind 'K' kill
  112. bind 'I' login on
  113. bind 'O' login off
  114. bind '}' history
  115.  
  116. # Yet another hack:
  117. # Prepend/append register [/] to the paste if ^a^] is pressed.
  118. # This lets me have autoindent mode in vi.
  119. register [ "\033:se noai\015a"
  120. register ] "\033:se ai\015a"
  121. bind ^] paste [.]
  122.  
  123. ### colors
  124. #
  125. # some notes on COLOR before explaining its use in
  126. # the commands caption, hardstatus, and sorendition.
  127. #
  128. # COLOR: colors codes are combinations of
  129. # [attribute modifier] [color description]
  130. # the manual talks of "attribute/color modifiers".
  131. # see the manual, section "STRING ESCAPES".
  132. #
  133. # Color table:
  134. # 0 Black . leave color unchanged
  135. # 1 Red b blue
  136. # 2 Green c cyan
  137. # 3 Brown / yellow d default color
  138. # 4 Blue g green b bold
  139. # 5 Purple k blacK B blinking
  140. # 6 Cyan m magenta d dim
  141. # 7 White r red r reverse
  142. # 8 unused/illegal w white s standout
  143. # 9 transparent y yellow u underline
  144. #
  145.  
  146. ### the caption line - screen status bar!
  147. #
  148. # %{= bb}%{+b w} colors
  149. # %t window name
  150. # %= end of line
  151. # %Y-%m-%d year-month-date
  152. # %c clock
  153. #
  154. caption always "%{= ck}%H.potager > %t %= %Y-%m-%d | %c"
  155. #caption always "%{= bb}%{+b w}[ %t ] %= %Y-%m-%d | %c"
  156. #caption always "%3n %t%? @%u%?%? [%h]%?%=%c"
  157.  
  158. ### the hardstatus line - verbose screen menu!
  159. #
  160. # defhstatus "screen: ^En (^Et)"
  161.  
  162. hardstatus alwayslastline "%-Lw%{+b kc}%50>%n%f* %t%{-}%+Lw%<"
  163. #hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
  164. #hardstatus alwaysignore
  165. #hardstatus alwayslastline "%Lw"
  166. #hardstatus alwayslastline "%-Lw%50>%n%f* %{=c} %t%+Lw%<"
  167. #hardstatus alwayslastline "%3n %t%? @%u%?%? [%h]%?%=%c"
  168.  
  169. # number of lines in buffer
  170. #
  171. defscrollback 2000
  172.  
  173. #attrcolor u "-u b"
  174. #attrcolor b "R"
  175.  
  176. ################
  177. #
  178. # default windows
  179. #
  180.  
  181. screen -t "champignon" 0
  182.  
  183. # some more examples:
  184. #
  185. # screen -t local 0
  186. # screen -t mail 1 mutt
  187. # screen -t remote 2 ssh some.server.org
  188.  
  189. # default name for new windows
  190. #
  191. shelltitle "shell"
  192.  
  193. ### misc
  194. #
  195. # advertise hardstatus support to $TERMCAP
  196. termcapinfo * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\'
  197.  
  198. # make the shell in every window a login shell
  199. # shell -$SHELL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement