plan9port/bin/wintext

23 lines
251 B
Text
Raw Normal View History

#!/bin/bash
2005-01-04 22:11:58 +00:00
case "$winid" in
[0-9]*)
9p read acme/$winid/body
exit 0
esac
case "$text9term" in
unix!*)
dial -e $text9term </dev/null
exit 0
esac
case "$TMUX" in
?*)
tmux capture-pane -p
exit 0
esac
2005-01-04 22:11:58 +00:00
echo 'no running window found' 2>&1
exit 1