]> git.phdru.name Git - dotfiles.git/blobdiff - .screenrc
.screenrc: Change hardstatus colors
[dotfiles.git] / .screenrc
index 1f4850d9150e97fb91825ddb38cb9fe74a6752a8..070b58656efcf0e369c1d434916639c66e2b6b2e 100644 (file)
--- a/.screenrc
+++ b/.screenrc
@@ -36,6 +36,24 @@ bind ^\
 # on backspace send ^H
 #bindkey -d -k kb stuff "\010"
 
+# Remap keypad
+#Home
+bindkey \033Ow stuff \033[1~
+#Up
+bindkey \033Ox stuff \033OA
+#PgUp
+bindkey \033Oy stuff \033[5~
+#Left
+bindkey \033Ot stuff \033OD
+#Right
+bindkey \033Ov stuff \033OC
+#End
+bindkey \033Oq stuff \033[4~
+#Down
+bindkey \033Or stuff \033OB
+#PgDn
+bindkey \033Os stuff \033[6~
+
 # ------------------------------------------------------------------------------
 # TERMINAL SETTINGS
 # ------------------------------------------------------------------------------
@@ -61,7 +79,7 @@ termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
 # for inactive windows - black on cyan
 # for active window - white on blue
 hardstatus alwayslastline
-hardstatus string "%{= ck}%-w%{= bw}%n%f %t%{-}%+w %-="
+hardstatus string "%{= yk}%-w%{= gk}%n%f %t%{-}%+w %-="
 
 # set these terminals up to be 'optimal' instead of vt100
 termcapinfo xterm*|rxvt*|linux*|Eterm* OP
@@ -77,5 +95,14 @@ termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
 #
 #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 -S test; tput rmcup`
+termcapinfo xterm*|rxvt* 'ti=:te='
+
 # Enable non-blocking mode to better cope with flaky ssh connections.
 defnonblock 5