From: "Steve Simon" <steve@quintile.net>
To: 9fans@9fans.net
Subject: Re: [9fans] once more: drawterm osx-x11 on x86-64
Date: Mon, 2 Mar 2015 08:47:35 +0000 [thread overview]
Message-ID: <4600077ceb6296375afba140675ad5ef@quintile.net> (raw)
In-Reply-To: <c9b35f9be243863e68126afc3cfafd07@brasstown.quanstro.net>
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
next prev parent reply other threads:[~2015-03-02 8:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-27 0:00 Mark van Atten
2015-02-27 22:40 ` Mark van Atten
2015-02-27 23:10 ` Jeff Sickel
2015-02-27 23:27 ` Mark van Atten
2015-02-28 1:19 ` Jeff Sickel
2015-02-28 2:14 ` Steven Stallion
2015-02-28 8:07 ` cinap_lenrek
2015-02-28 8:13 ` lucio
2015-02-28 8:18 ` cinap_lenrek
2015-02-28 8:29 ` Bakul Shah
2015-03-02 7:55 ` erik quanstrom
2015-03-02 8:47 ` Steve Simon [this message]
2015-02-28 9:17 ` Mark van Atten
2015-02-28 0:39 ` yy
2015-02-28 1:09 ` Sean Hinchee
2015-02-28 1:35 ` Jeff Sickel
2015-02-28 18:05 sl
2015-02-28 18:29 ` Bakul Shah
2015-03-10 17:32 michaelian ennis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4600077ceb6296375afba140675ad5ef@quintile.net \
--to=steve@quintile.net \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).