shithub: rc

ref: 630a1a7b27a60e939bcbe2e9288e4f40a80a9066
dir: rc/9grid

View raw version
#!/bin/rc -e
9fs tcp!chat.9p.zone!9990 /n/chat
rm /srv/tcp!chat.9p.zone!9990
# fukken quoting
cat <<'!' >/tmp/grid.$pid
#!/bin/rc
window -r 0 0 656 516 -scroll chat -n qwx
window -r 0 524 656 548 -scroll girc -g /n/chat/chat
window -scroll 'echo cat /dev/wsys/1/text ''>>/tmp/chat''; echo ''{}>/dev/wsys/1/text''; rc'
!
chmod +x /tmp/grid.$pid
rio -i /tmp/grid.$pid
rm /tmp/grid.$pid
unmount /n/chat