Plan 9 from Bell Labs’s /usr/web/sources/contrib/sl/rc/tw

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/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 $"*
	}
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.