Add the xterm title hack to the default screenrc

This commit is contained in:
Tom G. Christensen 2004-01-06 14:07:48 +00:00 committed by tgc
parent 7ed603486b
commit f8a93fc85b

View File

@ -9,7 +9,7 @@
# Check the following 4 variables before running the script
topdir=screen
version=4.0.2
pkgver=1
pkgver=2
source[0]=$topdir-$version.tar.gz
# If there are no patches, simply comment this
#patch[0]=
@ -49,7 +49,14 @@ install()
setdir source
$CP terminfo/screeninfo.src $stagedir$prefix/share/$topdir
$MKDIR -p $stagedir$prefix/etc
$CP etc/etcscreenrc $stagedir$prefix/etc/screenrc.default
$CP etc/etcscreenrc $stagedir$prefix/etc/screenrc
# Add two useful hacks to screenrc
cat << EOF >> $stagedir$prefix/etc/screenrc
# special xterm hardstatus: use the window title.
termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
hardstatus string "[screen %n%?: %t%?] %h"
EOF
$RM -f $stagedir$prefix/info/dir
}