Blame SOURCES/screen-4.0.3-screenrc.patch

c18ec5
diff -up screen-4.0.3/etc/etcscreenrc.screenrc screen-4.0.3/etc/etcscreenrc
c18ec5
--- screen-4.0.3/etc/etcscreenrc.screenrc	2003-12-05 14:46:13.000000000 +0100
c18ec5
+++ screen-4.0.3/etc/etcscreenrc	2009-09-25 14:20:31.000000000 +0200
c18ec5
@@ -36,8 +36,8 @@ vbell_msg "   Wuff  ----  Wuff!!  "
c18ec5
 # IC    insert multiple chars
c18ec5
 # nx    terminal uses xon/xoff
c18ec5
 
c18ec5
-termcap  facit|vt100|xterm LP:G0
c18ec5
-terminfo facit|vt100|xterm LP:G0
c18ec5
+termcap  facit|vt100|xterm|xterm-* LP:G0
c18ec5
+terminfo facit|vt100|xterm|xterm-* LP:G0
c18ec5
 
c18ec5
 #the vt100 description does not mention "dl". *sigh*
c18ec5
 termcap  vt100 dl=5\E[M
c18ec5
@@ -55,15 +55,15 @@ terminfo sun 'up=^K:AL=\E[%p1%dL:DL=\E[%
c18ec5
 #xterm understands both im/ic and doesn't have a status line.
c18ec5
 #Note: Do not specify im and ic in the real termcap/info file as
c18ec5
 #some programs (e.g. vi) will (no,no, may (jw)) not work anymore.
c18ec5
-termcap  xterm|fptwist hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
c18ec5
-terminfo xterm|fptwist hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
c18ec5
+#termcap  xterm|fptwist hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
c18ec5
+#terminfo xterm|fptwist hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
c18ec5
 
c18ec5
 # Long time I had this in my private screenrc file. But many people
c18ec5
 # seem to want it (jw):
c18ec5
 # we do not want the width to change to 80 characters on startup:
c18ec5
 # on suns, /etc/termcap has :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:
c18ec5
-termcap xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
c18ec5
-terminfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
c18ec5
+#termcap xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
c18ec5
+#terminfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
c18ec5
 
c18ec5
 #
c18ec5
 # Do not use xterms alternate window buffer. 
c18ec5
diff -up screen-4.0.3/etc/screenrc.screenrc screen-4.0.3/etc/screenrc
c18ec5
--- screen-4.0.3/etc/screenrc.screenrc	2006-10-23 15:06:32.000000000 +0200
c18ec5
+++ screen-4.0.3/etc/screenrc	2009-09-25 14:31:30.000000000 +0200
c18ec5
@@ -1,21 +1,11 @@
c18ec5
-#
c18ec5
-# Example of a user's .screenrc file
c18ec5
-#
c18ec5
-
c18ec5
 # This is how one can set a reattach password:
c18ec5
 # password ODSJQf.4IJN7E    # "1234"
c18ec5
 
c18ec5
-# no annoying audible bell, please
c18ec5
-vbell on
c18ec5
-
c18ec5
-# detach on hangup
c18ec5
-autodetach on
c18ec5
-
c18ec5
 # don't display the copyright page
c18ec5
 startup_message off
c18ec5
 
c18ec5
 # emulate .logout message
c18ec5
-pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
c18ec5
+pow_detach_msg "Screen session of $LOGNAME $:cr:$:nl:ended."
c18ec5
 
c18ec5
 # advertise hardstatus support to $TERMCAP
c18ec5
 # termcapinfo  * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\'
c18ec5
@@ -40,18 +30,12 @@ defscrollback 1000
c18ec5
 
c18ec5
 ################
c18ec5
 #
c18ec5
-# xterm tweaks
c18ec5
+# more xterm tweaks
c18ec5
 #
c18ec5
 
c18ec5
-#xterm understands both im/ic and doesn't have a status line.
c18ec5
-#Note: Do not specify im and ic in the real termcap/info file as
c18ec5
-#some programs (e.g. vi) will not work anymore.
c18ec5
-termcap  xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
c18ec5
-terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
c18ec5
-
c18ec5
 #80/132 column switching must be enabled for ^AW to work
c18ec5
 #change init sequence to not switch width
c18ec5
-termcapinfo  xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
c18ec5
+#termcapinfo  xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
c18ec5
 
c18ec5
 # Make the output buffer large for (fast) xterms.
c18ec5
 #termcapinfo xterm* OL=10000
c18ec5
@@ -59,18 +43,18 @@ termcapinfo xterm* OL=100
c18ec5
 
c18ec5
 # tell screen that xterm can switch to dark background and has function
c18ec5
 # keys.
c18ec5
-termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
c18ec5
-termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
c18ec5
-termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
c18ec5
+termcapinfo xterm|xterm-* 'VR=\E[?5h:VN=\E[?5l'
c18ec5
+#termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
c18ec5
+#termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
c18ec5
 
c18ec5
 # special xterm hardstatus: use the window title.
c18ec5
-termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
c18ec5
+termcapinfo xterm|xterm-* 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
c18ec5
 
c18ec5
 #terminfo xterm 'vb=\E[?5h$<200/>\E[?5l'
c18ec5
-termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
c18ec5
+#termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
c18ec5
 
c18ec5
 # emulate part of the 'K' charset
c18ec5
-termcapinfo   xterm 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
c18ec5
+termcapinfo   xterm|xterm-* 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
c18ec5
 
c18ec5
 # xterm-52 tweaks:
c18ec5
 # - uses background color for delete operations
c18ec5
@@ -103,32 +87,12 @@ termcapinfo linux C8
c18ec5
 # old rxvt versions also need this
c18ec5
 # termcapinfo rxvt C8
c18ec5
 
c18ec5
-
c18ec5
-################
c18ec5
-#
c18ec5
-# keybindings
c18ec5
-#
c18ec5
-
c18ec5
-#remove some stupid / dangerous key bindings
c18ec5
-bind k
c18ec5
-bind ^k
c18ec5
-bind .
c18ec5
-bind ^\
c18ec5
-bind \\
c18ec5
-bind ^h
c18ec5
-bind h
c18ec5
-#make them better
c18ec5
-bind 'K' kill
c18ec5
-bind 'I' login on
c18ec5
-bind 'O' login off
c18ec5
-bind '}' history
c18ec5
-
c18ec5
 # Yet another hack:
c18ec5
 # Prepend/append register [/] to the paste if ^a^] is pressed.
c18ec5
 # This lets me have autoindent mode in vi.
c18ec5
-register [ "\033:se noai\015a"
c18ec5
-register ] "\033:se ai\015a"
c18ec5
-bind ^] paste [.]
c18ec5
+#register [ "\033:se noai\015a"
c18ec5
+#register ] "\033:se ai\015a"
c18ec5
+#bind ^] paste [.]
c18ec5
 
c18ec5
 ################
c18ec5
 #
c18ec5
@@ -140,9 +104,14 @@ bind ^] paste [.]
c18ec5
 # screen -t 40 2 rlogin server
c18ec5
 
c18ec5
 # caption always "%3n %t%? @%u%?%? [%h]%?%=%c"
c18ec5
+## alternative caption, gives window list, LOGNAME and current date:
c18ec5
+# caption always "%{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw %=%{mk}@%H %{yk}%D %{ck}%M%{wk} %{ck}%d %{gk}%c"
c18ec5
 # hardstatus alwaysignore
c18ec5
 # hardstatus alwayslastline "%Lw"
c18ec5
 
c18ec5
+# Red Hat's normal status line
c18ec5
+hardstatus string "[screen %n%?: %t%?] %h"
c18ec5
+
c18ec5
 # bind = resize =
c18ec5
 # bind + resize +1
c18ec5
 # bind - resize -1