🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1716

Re: How to put something on Status line

#1716
From: david.r.connet
Date: Tue, 06 Nov 1990 19:34
25 lines
1129 bytes
In article <6517@drutx.ATT.COM>, rlp@druwa.ATT.COM (PrehnRL) writes:
> #--------------------------
> Lastly for AT&T 630 terminals
> #--------------------------
> 	_cd()
> 		{
> 		\cd "$@"
> 		DIR=`pwd`
> 		SIZE=`expr "${DIR}" : '.*'`
> 		echo "\033[?${SIZE};2v${DIR}\c"
> 		}
> #--------------------------

This is good for a cd command, but be careful about generalizing to
putting anything in the 630 header.  expr will report 10 as the
length of "word\tword".  echo produces 9.  Interesting results can
result in the header.

Also the '2' in '2v' in the echo sequence can be:
	0: left justify
	1: center
	2: right justify

Dave Connet
dcon@iwtng.att.com
Technical Details
Message-ID: <1990Nov6.193418.20666@cbnewsc.att.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!bu.edu!att!cbnewsc!dcon
References: <152961@felix.UUCP> <1990Nov1.180501.3226@cbnewsl.att.com> <6517@drutx.ATT.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!bu.edu!att!cbnewsc!dcon
From: dcon@cbnewsc.att.com (david.r.connet)
Newsgroups: comp.unix.shell
Subject: Re: How to put something on Status line
Keywords: csh,status,VT100
Message-ID: <1990Nov6.193418.20666@cbnewsc.att.com>
Date: 6 Nov 90 19:34:18 GMT
References: <152961@felix.UUCP> <1990Nov1.180501.3226@cbnewsl.att.com> <6517@drutx.ATT.COM>
Distribution: na
Organization: AT&T Bell Laboratories
Lines: 25