Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  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. # ------------------------------------------------------------------------------
  20. # SCREEN SETTINGS
  21. # ------------------------------------------------------------------------------
  22.  
  23. startup_message off
  24. #nethack on
  25.  
  26. #defflow on # will force screen to process ^S/^Q
  27. #deflogin on
  28. #autodetach off
  29.  
  30. # turn visual bell on
  31. vbell on
  32. vbell_msg " Wuff ---- Wuff!! "
  33.  
  34. # define a bigger scrollback, default is 100 lines
  35. defscrollback 1024
  36.  
  37. # ------------------------------------------------------------------------------
  38. # SCREEN KEYBINDINGS
  39. # ------------------------------------------------------------------------------
  40.  
  41. # Remove some stupid / dangerous key bindings
  42. bind ^k
  43. #bind L
  44. bind ^\
  45. # Make them better
  46. bind \\ quit
  47. bind K kill
  48. #bind I login on
  49. #bind O login off
  50. bind } history
  51.  
  52. # An example of a "screen scraper" which will launch urlview on the current
  53. # screen window
  54. #
  55. #bind ^B eval "hardcopy_append off" "hardcopy -h $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"
  56.  
  57. # ------------------------------------------------------------------------------
  58. # TERMINAL SETTINGS
  59. # ------------------------------------------------------------------------------
  60.  
  61. # The vt100 description does not mention "dl". *sigh*
  62. termcapinfo vt100 dl=5\E[M
  63.  
  64. # turn sending of screen messages to hardstatus off
  65. hardstatus off
  66. # Set the hardstatus prop on gui terms to set the titlebar/icon title
  67. termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
  68. # use this for the hard status string
  69. #hardstatus string "%h%? users: %u%?"
  70.  
  71. # An alternative hardstatus to display a bar at the bottom listing the
  72. # windownames and highlighting the current windowname in blue. (This is only
  73. # enabled if there is no hardstatus setting for your terminal)
  74. #
  75. #hardstatus lastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
  76.  
  77. # set these terminals up to be 'optimal' instead of vt100
  78. termcapinfo xterm*|linux*|rxvt*|Eterm* OP
  79.  
  80. # Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E>
  81. # (This fixes the "Aborted because of window size change" konsole symptoms found
  82. # in bug #134198)
  83. termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
  84.  
  85. # To get screen to add lines to xterm's scrollback buffer, uncomment the
  86. # following termcapinfo line which tells xterm to use the normal screen buffer
  87. # (which has scrollback), not the alternate screen buffer.
  88. #
  89. #termcapinfo xterm|xterms|xs|rxvt ti@:te@
  90.  
  91. # ------------------------------------------------------------------------------
  92. # STARTUP SCREENS
  93. # ------------------------------------------------------------------------------
  94.  
  95. # Example of automatically running some programs in windows on screen startup.
  96. #
  97. # The following will open top in the first window, an ssh session to monkey
  98. # in the next window, and then open mutt and tail in windows 8 and 9
  99. # respectively.
  100. #
  101. # screen top
  102. # screen -t monkey ssh monkey
  103. # screen -t mail 8 mutt
  104. # screen -t daemon 9 tail -f /var/log/daemon.log
  105.  
  106. #utf8 on
  107.  
  108. bind ^u encoding utf8
  109. bind ^e encoding euc
  110. bind ^s encoding sjis
  111.  
  112.  
  113. #backtick 0 0 0 uim-fep-tick
  114. #backtick 0 0 0 /Library/Frameworks/UIM.framework/Versions/Current/bin/uim-fep-tick
  115. #hardstatus alwayslastline "%0`"
  116. #bind j exec | uim-fep -S
  117. #bind j exec | /Library/Frameworks/UIM.framework/Versions/Current/bin/uim-fep -s lastline -S
  118. #bind k eval 'exec cat' kill redisplay
  119.  
  120. #hardstatus alwayslastline "[%02c] %`%w"
  121. #hardstatus alwayslastline "[%02c] %`%-w%{=b bw}%n %t%{-}%+w"
  122. hardstatus alwayslastline "[%Y-%m-%d %02c] %` %-w%{=b bw}%n %t%{-}%+w"
  123.  
  124.  
  125. bind r eval 'echo "Resize window"' 'command -c resize'
  126. bind -c resize ^] command
  127. bind -c resize j eval 'resize +1' 'command -c resize'
  128. bind -c resize k eval 'resize -1' 'command -c resize'
  129.  
  130.  
  131. #logfile "/home/takahashi/.log/screen-%Y%m%d-%n.log”
  132. #log on
  133. #deflog on
  134. term ansi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement