dot

packages and services management
Log | Files | Refs | README

ii-client (309B)


      1 #!/bin/sh -e
      2 trap 'true' INT
      3 
      4 while true
      5 do	c=$(exec ls -d ./out */out */*/out | exec sed 's,/out,,' | exec iomenu)
      6 	test "$c" && case "$(exec printf '%s\n' view chat | exec iomenu)" in
      7 	(view)
      8 		eel <$c/out | less
      9 		;;
     10 	(chat)
     11 		exec tail -f -n 80 "$c/out" | exec eel | shuntty "$c> " >$c/in
     12 		;;
     13 	esac
     14 done