#!/bin/sh # Copies $* to the titlebar of the window. If $1 is "-xxx", # then /dev/xxx is the target window, and tset is used on /dev/xxx # to determine the terminal type. prog=`basename $0` case "$#$1" in 1-h ) cat < /dev/$tty else echo $X1 "$prefix1$*$suffix1$prefix2$*$suffix2$X2" fi else echo "$prog: don't know what escape sequences to use for TERM $TERM" fi