Jacek Caban : conhost: Explicitly set tty cursor position after updating output in write_console.

Alexandre Julliard julliard at winehq.org
Mon Sep 21 15:12:16 CDT 2020


Module: wine
Branch: master
Commit: da3bd4cb4a1c9644717547e0453ccd3498a3ceb9
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=da3bd4cb4a1c9644717547e0453ccd3498a3ceb9

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Sep 21 17:05:21 2020 +0200

conhost: Explicitly set tty cursor position after updating output in write_console.

This avoids absolute cursor position jumps.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/conhost/conhost.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c
index 422a966eb2..5f6065eab5 100644
--- a/programs/conhost/conhost.c
+++ b/programs/conhost/conhost.c
@@ -1876,7 +1876,10 @@ static NTSTATUS write_console( struct screen_buffer *screen_buffer, const WCHAR
                 if (++screen_buffer->cursor_y == screen_buffer->height)
                     new_line( screen_buffer, &update_rect );
                 else if (screen_buffer->mode & ENABLE_WRAP_AT_EOL_OUTPUT)
+                {
                     update_output( screen_buffer, &update_rect );
+                    set_tty_cursor( screen_buffer->console, screen_buffer->cursor_x, screen_buffer->cursor_y );
+                }
                 continue;
             case '\a':
                 FIXME( "beep\n" );




More information about the wine-cvs mailing list