wintext: add tmux support, use in ", ""

Fixes #223.
This commit is contained in:
Russ Cox 2020-01-13 11:04:53 -05:00
parent cc48e73a96
commit fa7fecff33
4 changed files with 19 additions and 20 deletions

View file

@ -2,19 +2,10 @@
. 9.rc
fn text {
if(~ $winid [0-9]*)
9p read acme/$winid/body
if not if(~ $text9term unix!*)
dial -e $text9term </dev/null
if not
status=''
}
PROMPT='[^ ]*[%;$#][ ]+'
fn cmds {
text | sed -n 's/^'$PROMPT'([^"])/ \1/p'
wintext | sed -n 's/^'$PROMPT'([^"])/ \1/p'
}
switch($#*) {