Add the xterm title hack to the default screenrc
This commit is contained in:
parent
7ed603486b
commit
f8a93fc85b
@ -9,7 +9,7 @@
|
|||||||
# Check the following 4 variables before running the script
|
# Check the following 4 variables before running the script
|
||||||
topdir=screen
|
topdir=screen
|
||||||
version=4.0.2
|
version=4.0.2
|
||||||
pkgver=1
|
pkgver=2
|
||||||
source[0]=$topdir-$version.tar.gz
|
source[0]=$topdir-$version.tar.gz
|
||||||
# If there are no patches, simply comment this
|
# If there are no patches, simply comment this
|
||||||
#patch[0]=
|
#patch[0]=
|
||||||
@ -49,7 +49,14 @@ install()
|
|||||||
setdir source
|
setdir source
|
||||||
$CP terminfo/screeninfo.src $stagedir$prefix/share/$topdir
|
$CP terminfo/screeninfo.src $stagedir$prefix/share/$topdir
|
||||||
$MKDIR -p $stagedir$prefix/etc
|
$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
|
$RM -f $stagedir$prefix/info/dir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user