/etc/screenrc


SUBMITTED BY: Guest

DATE: Jan. 13, 2013, 8:03 p.m.

FORMAT: Text only

SIZE: 4.2 kB

HITS: 1879

  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. # ------------------------------------------------------------------------------
  32. # SCREEN KEYBINDINGS
  33. # ------------------------------------------------------------------------------
  34. # Remove some stupid / dangerous key bindings
  35. bind ^k
  36. #bind L
  37. bind ^\
  38. # Make them better
  39. bind \\ quit
  40. bind K kill
  41. bind I login on
  42. bind O login off
  43. bind } history
  44. # An example of a "screen scraper" which will launch urlview on the current
  45. # screen window
  46. #
  47. #bind ^B eval "hardcopy_append off" "hardcopy -h $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"
  48. # ------------------------------------------------------------------------------
  49. # TERMINAL SETTINGS
  50. # ------------------------------------------------------------------------------
  51. # The vt100 description does not mention "dl". *sigh*
  52. termcapinfo vt100 dl=5\E[M
  53. # turn sending of screen messages to hardstatus off
  54. hardstatus on
  55. hardstatus alwayslastline
  56. hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m/%d %{W}%c %{g}]'
  57. startup_message off
  58. vbell on
  59. # Set the hardstatus prop on gui terms to set the titlebar/icon title
  60. termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
  61. # use this for the hard status string
  62. #hardstatus string "%h%? users: %u%?"
  63. # An alternative hardstatus to display a bar at the bottom listing the
  64. # windownames and highlighting the current windowname in blue. (This is only
  65. # enabled if there is no hardstatus setting for your terminal)
  66. #
  67. #hardstatus lastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
  68. # set these terminals up to be 'optimal' instead of vt100
  69. termcapinfo xterm*|linux*|rxvt*|Eterm* OP
  70. # Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E>
  71. # (This fixes the "Aborted because of window size change" konsole symptoms found
  72. # in bug #134198)
  73. termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
  74. # To get screen to add lines to xterm's scrollback buffer, uncomment the
  75. # following termcapinfo line which tells xterm to use the normal screen buffer
  76. # (which has scrollback), not the alternate screen buffer.
  77. #
  78. #termcapinfo xterm|xterms|xs|rxvt ti@:te@
  79. # Enable non-blocking mode to better cope with flaky ssh connections.
  80. defnonblock 5
  81. # ------------------------------------------------------------------------------
  82. # STARTUP SCREENS
  83. # ------------------------------------------------------------------------------
  84. # Example of automatically running some programs in windows on screen startup.
  85. #
  86. # The following will open top in the first window, an ssh session to monkey
  87. # in the next window, and then open mutt and tail in windows 8 and 9
  88. # respectively.
  89. #
  90. # screen top
  91. # screen -t monkey ssh monkey
  92. # screen -t mail 8 mutt
  93. # screen -t daemon 9 tail -f /var/log/daemon.log

comments powered by Disqus