[PATCH v2 1/3] conhost: Add the ENABLE_VIRTUAL_TERMINAL_PROCESSING mode flag by default.

Gabriel Ivăncescu gabrielopcode at gmail.com
Thu Apr 1 11:43:53 CDT 2021


Newer versions of Windows set it by default.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
 programs/conhost/conhost.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c
index 39544fb..54ead48 100644
--- a/programs/conhost/conhost.c
+++ b/programs/conhost/conhost.c
@@ -80,7 +80,7 @@ static struct screen_buffer *create_screen_buffer( struct console *console, int
     if (!(screen_buffer = calloc( 1, sizeof(*screen_buffer) ))) return NULL;
     screen_buffer->console        = console;
     screen_buffer->id             = id;
-    screen_buffer->mode           = ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT;
+    screen_buffer->mode           = ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT | ENABLE_VIRTUAL_TERMINAL_PROCESSING;
     screen_buffer->cursor_size    = 25;
     screen_buffer->cursor_visible = 1;
     screen_buffer->width          = width;
-- 
2.30.0




More information about the wine-devel mailing list