Fix sed buffering

before the fix it was printing after qemu exiting
This commit is contained in:
Sequencer 2025-03-20 00:57:41 +01:00
parent 972240061e
commit f4e57059b0
No known key found for this signature in database
GPG Key ID: F39DB3DCC46F8F41

View File

@ -33,7 +33,7 @@ terminal
( sleep 30; boot ) & ( sleep 30; boot ) &
tail -fn +0 "$QEMU_LOG" 2>/dev/null & tail -fn +0 "$QEMU_LOG" 2>/dev/null &
cat "$QEMU_TERM" 2> /dev/null | tee "$QEMU_PTY" | \ cat "$QEMU_TERM" 2> /dev/null | tee "$QEMU_PTY" | \
sed -e 's/\x1B\[[=0-9;]*[a-z]//gi' -e 's/failed to load Boot/skipped Boot/g' & sed -u -e 's/\x1B\[[=0-9;]*[a-z]//gi' -e 's/failed to load Boot/skipped Boot/g' &
wait $! || : wait $! || :
sleep 1 & wait $! sleep 1 & wait $!