How to put something on Status line

david.r.connet dcon at cbnewsc.att.com
Wed Nov 7 06:34:18 AEST 1990


In article <6517 at drutx.ATT.COM>, rlp at 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 at iwtng.att.com



More information about the Comp.unix.shell mailing list