QEMU x86_64 -nographic full system breaks host Bash terminal line wrapping state after simulation ends, requires reset or "tput smam" to fix it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
QEMU 4.2.0 compiled from source, Ubuntu 19.10, open a fresh new gnome terminal.
If you print 1000 = chars on the host terminal, then they do wrap around the end of the terminal:
printf "=%.0s" {0..1000}
However, if you first run QEMU:
x86_64-
and then quit it in any way, e.g. with Ctrl + A, and then re-run on the host terminal:
printf "=%.0s" {0..1000}
then the signs don't wrap around anymore, they just go "off the terminal to the right".
This can be fixed with either:
reset
tpam smam
but unfortunately those don't work in tmux for some reason: https:/
I consider this buggy behavior, QEMU should restore the original terminal state if possible.
Related: https:/
Apparently the code you run (BIOS?) is sending the DECRST control sequence to the terminal, which disable the auto-wrap mode flag. /github. com/mattiase/ wraptest I'm not sure how QEMU can save/restore this flag.
Looking at the detailed explanations on https:/