Gabriel Ivăncescu : conhost: Fix line wrapping around when ENABLE_VIRTUAL_TERMINAL_PROCESSING is set.

Alexandre Julliard julliard at winehq.org
Mon Apr 5 16:28:25 CDT 2021


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

Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date:   Mon Apr  5 16:24:43 2021 +0200

conhost: Fix line wrapping around when ENABLE_VIRTUAL_TERMINAL_PROCESSING is set.

Remember the fact we completed the entire line but normalize the cursor
otherwise. A newline is delayed so it wraps when writing a new character
if the cursor is outside the width.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/conhost/conhost.c   | 36 +++++++++++++-------
 programs/conhost/conhost.h   |  5 +++
 programs/conhost/tests/tty.c | 80 +++++++++++++++++++++++++++++++++++++++++---
 programs/conhost/window.c    |  6 ++--
 4 files changed, 107 insertions(+), 20 deletions(-)

Diff:   https://source.winehq.org/git/wine.git/?a=commitdiff;h=8d076bc5e46cc11ec94db631e7c608f62d75cee2



More information about the wine-cvs mailing list