#!/bin/sh # ~jhs/bin/.csh/xtermv == ~jhs/bin/.csh/xtermv, called by xterms # linked from # ~jhs/bin/.csh/xconsolev == ~jhs/bin/.csh/xconsolev, called by xconsoles # & linked from # ~jhs/bin/.csh/xpingv == ~jhs/bin/.csh/xpingv, called by xpings # See also # ~jhs/bin/.csh/consolev called by .xsession # if [ "`basename $0`" = "xconsolev" ]; then # an xconsole # bigC="-C" # fore="-fg magenta" # from=xconsoles # leftright="-" # xs=xs # else # }{ # an xterm # bigC="" # fore="" # from=xterms # leftright="+" # xs="" # fi # } name="`echo $1|dd conv=ucase`" case `basename $0` in #{ "xconsolev") #{ bigC="-C" fore="-fg magenta" from=xconsoles leftright="-" xs=xs title=rlogin command="rlogin -D" number=`host2number $1` ;; "xtermv") #{ bigC="" fore="" from=xterms leftright="+" xs="" title=rlogin command="rlogin -D" number=`host2number $1` ;; "xpingvall") #{ bigC="" fore="" from=xpings leftright="+" xs="" title=ping command="ping" number=`host2number $1` ;; "xpingvcoax") #{ bigC="" fore="" from=xpings leftright="+" xs="" title=ping command="ping" number=`host2coax $1` ;; *) echo "$0 Not a recognised name" ;; esac # } height=41 # Keep this same as ~/bin/.csh/consolev pixels=`echo "${number} ${height} * p" | dc` $xs xterm $fore $bigC -geometry 80x2${leftright}0+$pixels \ -sb -sl 1024 -bg `host2colour $1` -j -n $1 \ -T "$name $title < $from" -e $command $1 & # 80x2+0+50 left column # 80x2-0+50 right column same place as consoles