You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

357 lines
10 KiB

  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. #
  4. # /etc/screenrc
  5. #
  6. # This is the system wide screenrc.
  7. #
  8. # You can use this file to change the default behavior of screen system wide
  9. # or copy it to ~/.screenrc and use it as a starting point for your own
  10. # settings.
  11. #
  12. # Commands in this file are used to set options, bind screen functions to
  13. # keys, redefine terminal capabilities, and to automatically establish one or
  14. # more windows at the beginning of your screen session.
  15. #
  16. # This is not a comprehensive list of options, look at the screen manual for
  17. # details on everything that you can put in this file.
  18. #
  19. #
  20. # ==============================================================================
  21. # SCREEN SETTINGS
  22. # ==============================================================================
  23. # ESCAPE - the COMMAND CHARACTER
  24. # ===============================================================
  25. # escape ^aa # default
  26. # escape ^^^^ # suggested binding (Control-^) for Emacs users
  27. # PASSWORD
  28. # ===============================================================
  29. # This commands sets the *internal* password for the screen session.
  30. # WARNING!! If this is set then a "lock" command will only let you in to the
  31. # session after you enter the user's account password and then *also*
  32. # the internal password for that session. This gives additional safety but,
  33. # if you forget the internal password then you cannot resume your session.
  34. # Use :password to generate a password
  35. # password ODSJQf.4IJN7E # "1234"
  36. # VARIABLES
  37. # ===============================================================
  38. # No annoying audible bell, using "visual bell"
  39. # vbell on # default: off
  40. # vbell_msg " -- Bell,Bell!! -- " # default: "Wuff,Wuff!!"
  41. # Automatically detach on hangup.
  42. autodetach on # default: on
  43. # Don't display the copyright page
  44. startup_message off # default: on
  45. # Uses nethack-style messages
  46. # nethack on # default: off
  47. # Affects the copying of text regions
  48. crlf off # default: off
  49. # Enable/disable multiuser mode. Standard screen operation is singleuser.
  50. # In multiuser mode the commands acladd, aclchg, aclgrp and acldel can be used
  51. # to enable (and disable) other user accessing this screen session.
  52. # Requires suid-root.
  53. multiuser off
  54. # Change default scrollback value for new windows
  55. defscrollback 1000 # default: 100
  56. # Define the time that all windows monitored for silence should
  57. # wait before displaying a message. Default 30 seconds.
  58. silencewait 15 # default: 30
  59. # bufferfile: The file to use for commands
  60. # "readbuf" ('<') and "writebuf" ('>'):
  61. bufferfile $HOME/.screen_exchange
  62. #
  63. # hardcopydir: The directory which contains all hardcopies.
  64. # hardcopydir ~/.hardcopy
  65. # hardcopydir ~/.screen
  66. #
  67. # shell: Default process started in screen's windows.
  68. # Makes it possible to use a different shell inside screen
  69. # than is set as the default login shell.
  70. # If begins with a '-' character, the shell will be started as a login shell.
  71. # shell zsh
  72. # shell bash
  73. # shell ksh
  74. shell -$SHELL
  75. # shellaka '> |tcsh'
  76. # shelltitle '$ |bash'
  77. # emulate .logout message
  78. pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
  79. # caption always " %w --- %c:%s"
  80. # caption always "%3n %t%? @%u%?%? [%h]%?%=%c"
  81. # advertise hardstatus support to $TERMCAP
  82. # termcapinfo * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\'
  83. # set every new windows hardstatus line to somenthing descriptive
  84. # defhstatus "screen: ^En (^Et)"
  85. # don't kill window after the process died
  86. # zombie "^["
  87. # ignore displays that block on output
  88. defnonblock on
  89. # XTERM TWEAKS
  90. # ===============================================================
  91. # xterm understands both im/ic and doesn't have a status line.
  92. # Note: Do not specify im and ic in the real termcap/info file as
  93. # some programs (e.g. vi) will not work anymore.
  94. termcap xterm* hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
  95. terminfo xterm* hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
  96. # 80/132 column switching must be enabled for ^AW to work
  97. # change init sequence to not switch width
  98. termcapinfo xterm* Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
  99. # Make the output buffer large for (fast) xterms.
  100. # termcapinfo xterm* OL=10000
  101. termcapinfo xterm* OL=100
  102. # tell screen that xterm can switch to dark background and has function
  103. # keys.
  104. termcapinfo xterm* 'VR=\E[?5h:VN=\E[?5l'
  105. termcapinfo xterm* 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
  106. termcapinfo xterm* 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
  107. # special xterm hardstatus: use the window title.
  108. termcapinfo xterm* 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
  109. #terminfo xterm 'vb=\E[?5h$<200/>\E[?5l'
  110. termcapinfo xterm* 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
  111. # emulate part of the 'K' charset
  112. termcapinfo xterm* 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
  113. # xterm-52 tweaks:
  114. # - uses background color for delete operations
  115. termcapinfo xterm* be
  116. # Do not use xterm's alternative window buffer, it breaks scrollback (see bug #61195)
  117. termcapinfo xterm*|xs ti@:te=\E[2J
  118. # WYSE TERMINALS
  119. # ===============================================================
  120. #wyse-75-42 must have flow control (xo = "terminal uses xon/xoff")
  121. #essential to have it here, as this is a slow terminal.
  122. termcapinfo wy75-42 xo:hs@
  123. # New termcap sequences for cursor application mode.
  124. 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
  125. # OTHER TERMINALS
  126. # ===============================================================
  127. # make hp700 termcap/info better
  128. 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@'
  129. # Extend the vt100 desciption by some sequences.
  130. termcap vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC
  131. 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
  132. termcapinfo linux C8
  133. # old rxvt versions also need this
  134. # termcapinfo rxvt C8
  135. # KEYBINDINGS
  136. # ==============================================================
  137. # The "bind" command assign keys to (internal) commands
  138. # SCREEN checks all the keys you type; you type the key
  139. # which is known as the "command character" then SCREEN
  140. # eats this key, too, and checks whether this key is
  141. # "bound" to a command. If so then SCREEN will execute it.
  142. #
  143. # The command "bind" allows you to chose which keys
  144. # will be assigned to the commands.
  145. #
  146. # Some commands are bound to several keys -
  147. # usually to both some letter and its corresponding
  148. # control key combination, eg the command
  149. # "(create) screen" is bound to both 'c' and '^C'.
  150. #
  151. # The following list shows the default bindings:
  152. #
  153. # break ^B b
  154. # clear C
  155. # colon :
  156. # copy ^[ [
  157. # detach ^D d
  158. # digraph ^V
  159. # displays *
  160. # dumptermcap .
  161. # fit F
  162. # flow ^F f
  163. # focus ^I
  164. # hardcopy h
  165. # help ?
  166. # history { }
  167. # info i
  168. # kill K k
  169. # lastmsg ^M m
  170. # license ,
  171. # log H
  172. # login L
  173. # meta x
  174. # monitor M
  175. # next ^@ ^N sp n
  176. # number N
  177. # only Q
  178. # other ^X
  179. # pow_break B
  180. # pow_detach D
  181. # prev ^H ^P p ^?
  182. # quit \
  183. # readbuf <
  184. # redisplay ^L l
  185. # remove X
  186. # removebuf =
  187. # reset Z
  188. # screen ^C c
  189. # select " '
  190. # silence _
  191. # split S
  192. # suspend ^Z z
  193. # time ^T t
  194. # title A
  195. # vbell ^G
  196. # version v
  197. # width W
  198. # windows ^W w
  199. # wrap ^R r
  200. # writebuf >
  201. # xoff ^S s
  202. # xon ^Q q
  203. # ^] paste .
  204. # - select -
  205. # 0 select 0
  206. # 1 select 1
  207. # 2 select 2
  208. # 3 select 3
  209. # 4 select 4
  210. # 5 select 5
  211. # 6 select 6
  212. # 7 select 7
  213. # 8 select 8
  214. # 9 select 9
  215. # I login on
  216. # O login off
  217. # ] paste .
  218. #
  219. # And here are the default bind commands if you need them:
  220. #
  221. # bind A title
  222. # bind C clear
  223. # bind D pow_detach
  224. # bind F fit
  225. # bind H log
  226. # bind I login on
  227. # bind K kill
  228. # bind L login
  229. # bind M monitor
  230. # bind N number
  231. # bind O login off
  232. # bind Q only
  233. # bind S split
  234. # bind W width
  235. # bind X remove
  236. # bind Z reset
  237. # Let's remove some dangerous key bindings ...
  238. bind k
  239. bind ^k
  240. # bind . dumptermcap # default
  241. bind .
  242. # bind ^\ quit # default
  243. bind ^\
  244. # bind \\ quit # default
  245. bind \\
  246. # bind ^h ??? # default
  247. bind ^h
  248. # bind h hardcopy # default
  249. bind h
  250. # ... and make them better.
  251. bind 'K' kill
  252. bind 'I' login on
  253. bind 'O' login off
  254. bind '}' history
  255. # Yet another hack:
  256. # Prepend/append register [/] to the paste if ^a^] is pressed.
  257. # This lets me have autoindent mode in vi.
  258. register [ "\033:se noai\015a"
  259. register ] "\033:se ai\015a"
  260. bind ^] paste [.]
  261. # hardstatus alwaysignore
  262. # hardstatus alwayslastline "%Lw"
  263. # Resize the current region. The space will be removed from or added to
  264. # the region below or if there's not enough space from the region above.
  265. bind = resize =
  266. bind + resize +3
  267. bind - resize -3
  268. # bind _ resize max
  269. #
  270. # attrcolor u "-u b"
  271. # attrcolor b "R"
  272. # STARTUP SCREENS
  273. # ===============================================================
  274. # Defines the time screen delays a new message when one message
  275. # is currently displayed. The default is 1 second.
  276. # msgminwait 2
  277. # Time a message is displayed if screen is not disturbed by
  278. # other activity. The dafault is 5 seconds:
  279. # msgwait 2
  280. # Briefly show the version number of this starting
  281. # screen session - but only for *one* second:
  282. # msgwait 1
  283. # version
  284. # Welcome the user:
  285. # echo "welcome :-)"
  286. # echo "I love you today."
  287. # Uncomment one/some following lines to automatically let
  288. # SCREEN start some programs in the given window numbers:
  289. # screen -t MAIL 0 mutt
  290. # screen -t EDIT 1 vim
  291. # screen -t GOOGLE 2 links http://www.google.com
  292. # screen -t NEWS 3 slrn
  293. # screen -t WWW 4 links http://www.math.fu-berlin.de/~guckes/
  294. # screen 5
  295. # screen 6
  296. # Set the environment variable var to value string. If only var is specified,
  297. # you'll be prompted to enter a value. If no parameters are specified,
  298. # you'll be prompted for both variable and value. The environment is
  299. # inherited by all subsequently forked shells.
  300. # setenv PROMPT_COMMAND 'echo -n -e "\033k\033\134"'
  301. # Don't you want to start programs which need a DISPLAY ?
  302. # setenv DISPLAY ''