aboutsummaryrefslogtreecommitdiff
path: root/module-common.c
diff options
context:
space:
mode:
authorsongziming <s.ziming@hotmail.com>2024-07-22 17:52:55 +0800
committerMarc-André Lureau <marcandre.lureau@redhat.com>2024-07-22 22:25:46 +0400
commit903cc9e1173e0778caa50871e8275c898770c690 (patch)
treed69161d25629cea7c9e4ffaa1b77b407637d7219 /module-common.c
parent865714cb3b88320e2e840eb851d084c757511a12 (diff)
downloadqemu-903cc9e1173e0778caa50871e8275c898770c690.zip
qemu-903cc9e1173e0778caa50871e8275c898770c690.tar.gz
qemu-903cc9e1173e0778caa50871e8275c898770c690.tar.bz2
chardev/char-win-stdio.c: restore old console mode
If I use `-serial stdio` on Windows, after QEMU exits, the terminal could not handle arrow keys and tab any more. Because stdio backend on Windows sets console mode to virtual terminal input when starts, but does not restore the old mode when finalize. This small patch saves the old console mode and set it back. Signed-off-by: Ziming Song <s.ziming@hotmail.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <ME3P282MB25488BE7C39BF0C35CD0DA5D8CA82@ME3P282MB2548.AUSP282.PROD.OUTLOOK.COM>
Diffstat (limited to 'module-common.c')
0 files changed, 0 insertions, 0 deletions