From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4600077ceb6296375afba140675ad5ef@quintile.net> From: "Steve Simon" Date: Mon, 2 Mar 2015 08:47:35 +0000 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] once more: drawterm osx-x11 on x86-64 Topicbox-Message-UUID: 46f097f4-ead9-11e9-9d60-3106f5b1d025 Not a solution but this is my hack: This file is $home/bin/rc/startup, envoked by 'exec rio -s -i startup' in $home/lib/profile ------------------------------------------ #!/bin/rc rfork e scr=(`{cat /dev/draw/new >[2]/dev/null || status=''}) height=$scr(12) y1=`{echo 'int(' $height '*' 0.12 ')' | hoc} y2=`{echo 'int(' $height '*' 0.3 ')' | hoc} y3=`{echo 'int(' $height '*' 0.7 ')' | hoc} width=$scr(11) x1=`{echo 'int(' $width '*' 0.1 ')' | hoc} x2=`{echo $x1 + 1 | hoc} x3=`{echo 'int(' $x2 + '(' $width '*' 0.5 '))' | hoc} x4=`{echo $x3 + 1 | hoc} x6=`{echo $width - $y1 | hoc} x5=`{echo $x6 - 1 | hoc} x7=`{echo $width - 1 | hoc} if(~ $service terminal) auth/fgui & if(~ $service terminal && ! ~ $#cpu 0) window -r 0 0 $x1 $y1 stats -lmei $sysname $cpu if not window -r 0 0 $x1 $y1 stats -lmei window -r $x2 0 $x3 $y1 faces -i if(cat /dev/volume >[2] /dev/null) window -r $x4 0 $x5 $y1 audio/tuner window -r $x6 0 $x7 $y1 clock window -r $x2 $y2 $x3 $y3 logwin ------------------------------------------ This is $home/bin/rc ------------------------------------------ #!/bin/rc fortune calendar -y news echo exec rc -i /logwin started by the above ------------------------------------------ -Steve