在 2024-05-10 01:02, Peter Damianov 写道:
- if (GetConsoleMode (h, &mode)) - /* If it is a console, translate ANSI escape codes as needed. */ + if (GetConsoleMode (h, &mode) && !(mode & ENABLE_VIRTUAL_TERMINAL_PROCESSING)) + /* If it is a console, and doesn't support ANSI escape codes, translate + * them as needed. + */
nitpicking: This should probably be
+ * them as needed. */
CC'ing Jonathan Yong. This series of patches look good to me. -- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature