]> git.phdru.name Git - dotfiles.git/blobdiff - .screenrc
Feat(recode-filenames-recursive): Allow to omit parameters
[dotfiles.git] / .screenrc
index 4580d72d432893908b2656464883f125f01028be..a085862f10c27b9c2382fc3b303694980a60e03b 100644 (file)
--- a/.screenrc
+++ b/.screenrc
@@ -13,6 +13,11 @@ startup_message off
 deflogin on
 shell -$SHELL
 
+# For this to work PS1 prompt must include empty "<esc>k<esc>\" sequence
+# and ends with "$ ".
+#shelltitle "\$ |$SHELL"
+#bind R screen -t '# |root:' sudo su -
+
 # define a bigger scrollback, default is 100 lines
 defscrollback 1024
 
@@ -36,6 +41,34 @@ bind ^\
 # on backspace send ^H
 #bindkey -d -k kb stuff "\010"
 
+# Remap keypad
+#KP_Home
+bindkey \033Ow stuff \033[1~
+#KP_Up
+bindkey \033Ox stuff \033OA
+#KP_PgUp
+bindkey \033Oy stuff \033[5~
+#KP_Left
+bindkey \033Ot stuff \033OD
+#KP_Right
+bindkey \033Ov stuff \033OC
+#KP_End
+bindkey \033Oq stuff \033[4~
+#KP_Down
+bindkey \033Or stuff \033OB
+#KP_PgDn
+bindkey \033Os stuff \033[6~
+#KP_minus
+bindkey \033Om stuff -
+#KP_plus
+bindkey \033Ok stuff +
+#KP_slash
+bindkey \033Oo stuff /
+#KP_asterisk
+bindkey \033Oj stuff *
+#KP_Enter
+bindkey \033OM stuff \015
+
 # ------------------------------------------------------------------------------
 # TERMINAL SETTINGS
 # ------------------------------------------------------------------------------
@@ -57,14 +90,16 @@ termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
 #hardstatus lastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
 
 # status line at the bottom of terminal
-# display numbers and titles:
-# for inactive windows - black on cyan
-# for active window - white on blue
-hardstatus alwayslastline
-hardstatus string "%{= ck}%-w%{= bw}%n %t%{-}%+w %-="
+# display window number, flags and title
+# for inactive windows - black on yellow (brown)
+# for active window - black on green
+#hardstatus alwayslastline
+#hardstatus string "%{= yk}%-w%{= gk}%n%f %t%{-}%+w %-="
+
+caption always "%{= yk}%-w%{= gk}%n%f %t%{-}%+w %-="
 
 # set these terminals up to be 'optimal' instead of vt100
-termcapinfo xterm*|linux*|rxvt*|Eterm* OP
+termcapinfo xterm*|rxvt*|linux*|Eterm* OP
 
 # Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E>
 # (This fixes the "Aborted because of window size change" konsole symptoms found
@@ -75,7 +110,16 @@ termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
 # following termcapinfo line which tells xterm to use the normal screen buffer
 # (which has scrollback), not the alternate screen buffer.
 #
-#termcapinfo xterm|xterms|xs|rxvt ti@:te@
+#termcapinfo xterm*|rxvt* ti@:te@
+
+# Use the alternate screen of the xterm-like terminal
+# https://unix.stackexchange.com/a/261939
+#termcapinfo xterm* 'ti=\E[?1049h:te=\E[?1049l'
+#termcapinfo rxvt* 'ti=\E7\E[?47h:te=\E[2J\E[?47l\E8'
+
+# Do not use the alternate screen at all
+# run `tput smcup; screen; tput rmcup`
+termcapinfo xterm*|rxvt* 'ti=:te='
 
 # Enable non-blocking mode to better cope with flaky ssh connections.
 defnonblock 5