Blob


1 #!/usr/local/plan9/bin/rc
3 if(~ $winid [0-9]*) {
4 9p read acme/$winid/body
5 exit 0
6 }
7 if(~ $text9term 'unix!'*) {
8 dial -e $text9term < /dev/null
9 exit 0
10 }
11 if(~ $TMUX ?*) {
12 tmux capture-pane -p
13 exit 0
14 }
16 echo 'no running window found' >[2=1]
17 exit 1