#!/bin/rc
# supertweet is indefinitely suspended
# use with https://github.com/mattn/twty
rfork en
cd $home
aux/stub -d $home/.config
aux/stub -d $home/.config/twty
bind -c $home/lib/twty.notreallysl $home/.config/twty
fn format{
while(line=`{read}){
echo $"line | tcs -t html | htmlfmt -l 9000 | uhtml
echo
}
}
if(~ $#* 0)
twty | format
if not{
switch($1){
case -d
while(){
Kill twty | rc
{twty | format} &
sleep 60
}
case -*
twty $*(1-) | format
case *
twty $"*
}
}
|