.screenrc 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. # $Id: screenrc,v 1.15 2003/10/08 11:39:03 zal Exp $
  2. #
  3. # /etc/screenrc
  4. #
  5. # This is the system wide screenrc.
  6. #
  7. # You can use this file to change the default behavior of screen system wide
  8. # or copy it to ~/.screenrc and use it as a starting point for your own
  9. # settings.
  10. #
  11. # Commands in this file are used to set options, bind screen functions to
  12. # keys, redefine terminal capabilities, and to automatically establish one or
  13. # more windows at the beginning of your screen session.
  14. #
  15. # This is not a comprehensive list of options, look at the screen manual for
  16. # details on everything that you can put in this file.
  17. #
  18. # ------------------------------------------------------------------------------
  19. # SCREEN SETTINGS
  20. # ------------------------------------------------------------------------------
  21. startup_message off
  22. #nethack on
  23. #defflow on # will force screen to process ^S/^Q
  24. deflogin on
  25. #autodetach off
  26. # turn visual bell on
  27. vbell on
  28. vbell_msg " Wuff ---- Wuff!! "
  29. # define a bigger scrollback, default is 100 lines
  30. defscrollback 1024
  31. # turn utf8 on
  32. defutf8 on
  33. # ------------------------------------------------------------------------------
  34. # SCREEN KEYBINDINGS
  35. # ------------------------------------------------------------------------------
  36. # Remove some stupid / dangerous key bindings
  37. bind ^k
  38. #bind L
  39. bind ^\
  40. # Make them better
  41. bind \\ quit
  42. bind K kill
  43. bind I login on
  44. bind O login off
  45. bind } history
  46. # An example of a "screen scraper" which will launch urlview on the current
  47. # screen window
  48. #
  49. #bind ^B eval "hardcopy_append off" "hardcopy -h $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"
  50. # ------------------------------------------------------------------------------
  51. # TERMINAL SETTINGS
  52. # ------------------------------------------------------------------------------
  53. # The vt100 description does not mention "dl". *sigh*
  54. termcapinfo vt100 dl=5\E[M
  55. # turn sending of screen messages to hardstatus off
  56. hardstatus off
  57. # Set the hardstatus prop on gui terms to set the titlebar/icon title
  58. termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
  59. # use this for the hard status string
  60. hardstatus string "%h%? users: %u%?"
  61. # An alternative hardstatus to display a bar at the bottom listing the
  62. # windownames and highlighting the current windowname in blue. (This is only
  63. # enabled if there is no hardstatus setting for your terminal)
  64. #
  65. #hardstatus lastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
  66. # set these terminals up to be 'optimal' instead of vt100
  67. termcapinfo xterm*|linux*|rxvt*|Eterm* OP
  68. # Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E>
  69. # (This fixes the "Aborted because of window size change" konsole symptoms found
  70. # in bug #134198)
  71. termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
  72. # To get screen to add lines to xterm's scrollback buffer, uncomment the
  73. # following termcapinfo line which tells xterm to use the normal screen buffer
  74. # (which has scrollback), not the alternate screen buffer.
  75. #
  76. #termcapinfo xterm|xterms|xs|rxvt ti@:te@
  77. # ------------------------------------------------------------------------------
  78. # STARTUP SCREENS
  79. # ------------------------------------------------------------------------------
  80. # Example of automatically running some programs in windows on screen startup.
  81. #
  82. # The following will open top in the first window, an ssh session to monkey
  83. # in the next window, and then open mutt and tail in windows 8 and 9
  84. # respectively.
  85. #
  86. # screen top
  87. # screen -t monkey ssh monkey
  88. # screen -t mail 8 mutt
  89. # screen -t daemon 9 tail -f /var/log/daemon.log
  90. #statusbar
  91. #hardstatus alwayslastline "%{= cw}screen > %-W %?%{!u}%n %t%{!u}%+W %=%{} [%02d/%02m/%Y][%0c:%s] on %H [%l]"
  92. #hardstatus alwayslastline " %{= kw}%?%-W %?%{!u}%n %t%{!u}%+W %=%{= bw} [%02d/%02m/%Y][%0c:%s] on %H"
  93. #hardstatus alwayslastline "%{+b kr}host: %{kw}%H %{kg} | %c | %{ky}%d.%m.%Y | %{kr}(load: %l)%-0=%{kw}"
  94. #scrollbar
  95. termcapinfo xterm ti@:te@
  96. #caption always "%{rw}%n%f %t %{wk} | %?%-Lw%?%{wb}[%n*%f %t]%?(%u)%?%{wk}%?%+Lw%? %{wk}"
  97. #caption splitonly
  98. #caption always "%{= cd}-=$LOGNAME@%H=- %-W %?%{.y}%n %t%{.d}%+W %=%{} %{.d}-=%0c=%l=-"
  99. #caption always "%{= cd}-=$LOGNAME@%H=- %-W %?%{!bu}%{.y}%n %t%{!bu}%{.w}%+W %=%{} %{.d}-=%0c=%l=-"
  100. #caption always "%{= .d}-=$LOGNAME@%H=- %-W %?%{!bu}%n %t%{!bu}%+W %=%{} %{.d}-=%0c=%l=-"
  101. caption always "%{= .d}$LOGNAME> %-W %?%{!bu}%n %t%{!bu}%+W %=%{} %=%{} [%02d/%02m/%Y][%0c:%s] on %H [%l]"
  102. bind ù caption splitonly
  103. bind µ caption always