aboutsummaryrefslogtreecommitdiff
path: root/bin/quote1
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-01-13 11:04:53 -0500
committerRuss Cox <rsc@swtch.com>2020-01-13 11:11:14 -0500
commitfa7fecff33769e27653a51d1d15909d2b538194b (patch)
treef4af3acc6eee66160f5d839302e32b4888ba85b3 /bin/quote1
parentcc48e73a96c863784fb0bc46e69bccf509890827 (diff)
downloadplan9port-fa7fecff33769e27653a51d1d15909d2b538194b.tar.gz
plan9port-fa7fecff33769e27653a51d1d15909d2b538194b.tar.bz2
plan9port-fa7fecff33769e27653a51d1d15909d2b538194b.zip
wintext: add tmux support, use in ", ""
Fixes #223.
Diffstat (limited to 'bin/quote1')
-rwxr-xr-xbin/quote111
1 files changed, 1 insertions, 10 deletions
diff --git a/bin/quote1 b/bin/quote1
index e0f7c8f9..f52480fd 100755
--- a/bin/quote1
+++ b/bin/quote1
@@ -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($#*) {