summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2021-01-12 17:08:59 +0100
committer Eric Hameleers <alien@slackware.com>2021-01-12 17:08:59 +0100
commit7957f02d897c09b598558674bad38c48091c3ebd (patch)
treee8273d4fa404408159f21949ad61490941b6e7f7
parent4809ada8034b2bfcd890eefb9eac7f78e1f85b0f (diff)
downloadliveslak-7957f02d897c09b598558674bad38c48091c3ebd.tar.gz
liveslak-7957f02d897c09b598558674bad38c48091c3ebd.tar.xz
Add a .screenrc file for some more comfort during SCREEN sessions
-rwxr-xr-xmake_slackware_live.sh43
1 files changed, 43 insertions, 0 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index b51e573..067fab6 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1680,6 +1680,49 @@ if [ ! -e ${LIVE_ROOTDIR}/usr/bin/vi ]; then
fi
fi
+# Add a screen configuration:
+cat <<"EOT" > ${LIVE_ROOTDIR}/etc/skel/.screenrc
+vbell on
+autodetach on
+startup_message off
+pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
+defscrollback 3000
+attrcolor b ".I"
+defbce "on"
+term xterm-256color
+shell -$SHELL
+
+# xterm:
+termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
+terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
+termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
+termcapinfo xterm* OL=10000
+termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
+termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
+termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
+termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
+termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
+termcapinfo xterm 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
+termcapinfo xterm* be
+termcapinfo xterm* ti@:te@
+termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
+
+# vt100:
+termcap vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC
+terminfo vt100* ms:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC
+termcapinfo linux C8
+
+# Tabbed colored hardstatus line
+hardstatus alwayslastline
+hardstatus string '%{= Kd} %{= Kd}%-w%{= Kr}[%{= KW}%n %t%{= Kr}]%{= Kd}%+w %-= %{KG} %H%{KW}|%{KY}%101`%{KW}|%D %M %d %Y%{= Kc} %C%A%{-}'
+# Hide hardstatus: ctrl-a f
+bind f eval "hardstatus ignore"
+# Show hardstatus: ctrl-a F
+bind F eval "hardstatus alwayslastline"
+EOT
+# Give root a copy:
+cat ${LIVE_ROOTDIR}/etc/skel/.screenrc > ${LIVE_ROOTDIR}/root/.screenrc
+
if [ -f ${LIVE_ROOTDIR}/etc/rc.d/rc.networkmanager ]; then
# Enable NetworkManager if present:
chmod +x ${LIVE_ROOTDIR}/etc/rc.d/rc.networkmanager