This patch series is a rewritten version of the patch to disable raw mode on the terminal when "-qmp stdio" is given on the command-line.
The rewritten series has several advantages, including working for text consoles ("-qmp vc2") and especially working with -chardev/-mon without the need to add special options. This is because in this series it is _the monitor_ who asks to disable raw mode. Patch 2 adds a new CharDriverState method. Patches 3/4 implement it for stdio, while patches 5/6 implement it for text consoles. Patches 1, 7 and 8 are related cleanups. Paolo Bonzini (8): remove broken code for tty add qemu_chr_set_echo move atexit(term_exit) to qemu_chr_open_stdio add set_echo implementation for qemu_chr_stdio create TextConsole together with the CharDeviceState add set_echo implementation for text consoles remove text_console_opts fix QemuOpts leak console.c | 81 +++++++++++++++++++++++++++++++++++----------------------- monitor.c | 1 + qemu-char.c | 62 +++++++++++++++++++++++--------------------- qemu-char.h | 2 + 5 files changed, 85 insertions(+), 63 deletions(-) -- 1.7.3.2