From f8a93fc85b2fc53c8032b210f96a5cd352e88ebf Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Tue, 6 Jan 2004 14:07:48 +0000 Subject: [PATCH] Add the xterm title hack to the default screenrc --- screen/build.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/screen/build.sh b/screen/build.sh index 9da8a01..79ae2be 100755 --- a/screen/build.sh +++ b/screen/build.sh @@ -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 }