diff options
author | songziming <s.ziming@hotmail.com> | 2024-07-22 17:52:55 +0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2024-07-24 07:47:42 +0300 |
commit | 4d2e28bf2d22ddea9372839721cc6c33d2c526c7 (patch) | |
tree | f57fe4ccfa3a2a484658802e01f1c0eab5713efd /linux-user/socket.h | |
parent | adfe95e1ca4f3316e79460cd4821487b98f3f4b7 (diff) |
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>
(cherry picked from commit 903cc9e1173e0778caa50871e8275c898770c690)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'linux-user/socket.h')
0 files changed, 0 insertions, 0 deletions