plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

wintext (250B)


      1 #!/usr/local/plan9/bin/rc
      2 
      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 }
     15 
     16 echo 'no running window found' >[2=1]
     17 exit 1