qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 1857449] [NEW] QEMU x86_64 -nographic full system breaks host Bash


From: Ciro Santilli 六四事件 法轮功
Subject: [Bug 1857449] [NEW] QEMU x86_64 -nographic full system breaks host Bash terminal line wrapping state after simulation ends, requires reset or "tput smam" to fix it
Date: Tue, 24 Dec 2019 12:25:29 -0000

Public bug reported:

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-softmmu/qemu-system-x86_64 -nographic

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://github.com/tmux/tmux/issues/969

I consider this buggy behavior, QEMU should restore the original
terminal state if possible.

Related: https://github.com/cirosantilli/linux-kernel-module-
cheat/issues/110

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1857449

Title:
  QEMU x86_64 -nographic full system breaks host Bash terminal line
  wrapping state after simulation ends, requires reset or "tput smam" to
  fix it

Status in QEMU:
  New

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-softmmu/qemu-system-x86_64 -nographic

  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://github.com/tmux/tmux/issues/969

  I consider this buggy behavior, QEMU should restore the original
  terminal state if possible.

  Related: https://github.com/cirosantilli/linux-kernel-module-
  cheat/issues/110

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1857449/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]