Plan 9 from Bell Labs’s /usr/web/sources/contrib/lee/misc/riostart
#!/bin/rc scr=(`{cat /dev/draw/new >[2]/dev/null || status=''}) wid=$scr(11) ht=$scr(12) wid1=`{echo $wid-1 | hoc} ht1=`{echo $ht-1 | hoc} window 0,0,161,117 stats -lmisce window 161,0,$wid1,$ht1 rc window 0,117,$wid,$ht acme