aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-04-18 16:10:20 +0000
committers-ol <s-ol@users.noreply.github.com>2020-04-18 16:10:23 +0000
commit2403b5b0083cfe4210ff0adbc80e36bf40a8dbf0 (patch)
tree7f69f0ed0ba673a9fac3bf635bec72099f14ae89 /bin
parentmerge dist/pack and dist/release (diff)
downloadalive-2403b5b0083cfe4210ff0adbc80e36bf40a8dbf0.tar.gz
alive-2403b5b0083cfe4210ff0adbc80e36bf40a8dbf0.zip
output to different streams at eval/runtime
Close #13
Diffstat (limited to 'bin')
-rwxr-xr-xbin/alv-copilot5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/alv-copilot b/bin/alv-copilot
index 9a0cf40..9f2f113 100755
--- a/bin/alv-copilot
+++ b/bin/alv-copilot
@@ -10,10 +10,9 @@ CONF=$tmpdir/conf
cat > "$CONF" << 'EOF'
split
+screen -t evaltime sh -c 'tty > "$FIFO"; read done < "$FIFO"; screen -X quit'
focus
-screen -t evaltime sh -c 'tty > "$FIFO"; read done < "$FIFO"'
-focus
-screen -t runtime sh -c 'read tty < "$FIFO"; "alv" $ARGS 2> "$tty"; echo "[press enter to exit]"; read prompt; echo done > "$FIFO"'
+screen -t runtime sh -c 'read tty < "$FIFO"; "alv" $ARGS 2> "$tty"; echo "[press enter to exit]"; read prompt; screen -X quit'
EOF
mkfifo "$FIFO"