qemu/chardev
Zhang Huasen 1e0c544673 chardev/char-win-stdio: Support VT sequences on Windows 11 host
If the monitor or the serial port use STDIO as backend on Windows 11 host,
e.g. -nographic options is used, the monitor or the guest Linux do not
response to arrow keys.

When Windows creates a console, ENABLE_VIRTUAL_PROCESS_INPUT is disabled
by default. Arrow keys cannot be retrieved by ReadFile or ReadConsoleInput
functions.

Add ENABLE_VIRTUAL_PROCESS_INPUT to the flag which is passed to SetConsoleMode,
when opening stdio console.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1674

Signed-off-by: Zhang Huasen <huasenzhang@foxmail.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <tencent_8DA57B405D427A560FD40F8FB0C0B1ADDE09@qq.com>
2023-06-27 17:08:56 +02:00
..
baum.c replace TABs with spaces 2023-03-20 12:43:50 +01:00
char-console.c
char-fd.c
char-fe.c
char-file.c chardev: Allow setting file chardev input file on the command line 2023-04-20 06:50:11 +02:00
char-hmp-cmds.c
char-io.c
char-mux.c
char-null.c
char-parallel.c
char-pipe.c
char-pty.c bulk: Remove pointless QOM casts 2023-06-05 20:48:34 +02:00
char-ringbuf.c
char-serial.c
char-socket.c chardev/char-socket: set s->listener = NULL in char_socket_finalize 2023-03-02 19:13:52 -05:00
char-stdio.c
char-udp.c
char-win-stdio.c chardev/char-win-stdio: Support VT sequences on Windows 11 host 2023-06-27 17:08:56 +02:00
char-win.c
char.c chardev: Allow setting file chardev input file on the command line 2023-04-20 06:50:11 +02:00
chardev-internal.h
meson.build meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
msmouse.c
spice.c
testdev.c
trace-events
trace.h
wctablet.c