From 2403b5b0083cfe4210ff0adbc80e36bf40a8dbf0 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sat, 18 Apr 2020 18:10:20 +0200 Subject: output to different streams at eval/runtime Close #13 --- bin/alv-copilot | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin') 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" -- cgit v1.2.3