Re: [PATCH] chardev/char-win-stdio: Support VT sequences on Windows 11 host

2023-06-19 Thread Zhang Huasen
From: Huasen Zhang Hello, On Sat, 17 Jun 2023 11:42:06 +0200 Marc-André Lureau < marcandre.lur...@redhat.com> wrote: Hi > On Fri, Jun 16, 2023 at 7:41 AM Zhang Huasen > wrote: > > > From: Huasen Zhang > > > > Hello, > > > > On Thu, 15 Jun 2023 12:57:55 +0200 Marc-André Lureau < > > marcandre

Re: [PATCH] chardev/char-win-stdio: Support VT sequences on Windows 11 host

2023-06-17 Thread Marc-André Lureau
Hi On Fri, Jun 16, 2023 at 7:41 AM Zhang Huasen wrote: > From: Huasen Zhang > > Hello, > > On Thu, 15 Jun 2023 12:57:55 +0200 Marc-André Lureau < > marcandre.lur...@redhat.com> > wrote: > > Hi > > > > On Thu, Jun 15, 2023 at 12:36 PM Zhang Huasen > > wrote: > > > > > If the monitor or the seri

Re: [PATCH] chardev/char-win-stdio: Support VT sequences on Windows 11 host

2023-06-15 Thread Zhang Huasen
From: Huasen Zhang Hello, On Thu, 15 Jun 2023 12:57:55 +0200 Marc-André Lureau wrote: > Hi > > On Thu, Jun 15, 2023 at 12:36 PM Zhang Huasen > wrote: > > > 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 gues

[PATCH] chardev/char-win-stdio: Support VT sequences on Windows 11 host

2023-06-15 Thread Zhang Huasen
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

Re: [PATCH] chardev/char-win-stdio: Support VT sequences on Windows 11 host

2023-06-15 Thread Marc-André Lureau
Hi On Thu, Jun 15, 2023 at 12:36 PM Zhang Huasen wrote: > 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