cygwin application on MsTerminal, enabling win32-raw-mode results in runway memory/CPU usage.

Takashi Yano takashi.yano@nifty.ne.jp
Sat Aug 31 02:33:03 GMT 2024


On Fri, 30 Aug 2024 19:56:34 +0800
Adamyg Mob wrote:
>  Cygwin: CYGWIN_NT-10.0-19045 WEED3 3.5.4-1.x86_64 2024-08-25 16:52 UTC
> x86_64 Cygwin
> Windows Terminal version:  1.20.11781.0
> Windows build number: 10.0.19045.4780
> 
> When running a cygwin64 based terminal application under a MsTerminal
> session, with win32-raw-mode "\033[?9001h" enabled,
> after brief input in the application becoming unresponsive and the session
> rapidly consumes all available memory/cpu..
> 
> Test application attached, plus ticket
> https://github.com/microsoft/terminal/issues/17824 contains additional
> information.

Thanks for the report.

Are there any documents for win32-raw-mode "\033[?9001h" ?

I am very puzzled with that WriteConsoleInput() with one event
generates ~15 input events for ReadConsoleInput() in this mode.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>


More information about the Cygwin mailing list