[PATCH 2/2] conhost: Fix line wrapping around when ENABLE_VIRTUAL_TERMINAL_PROCESSING is set.

Jacek Caban jacek at codeweavers.com
Mon Apr 5 09:24:43 CDT 2021


From: Gabriel Ivăncescu <gabrielopcode at gmail.com>

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>
---
  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(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-conhost-Fix-line-wrapping-around-when-ENABLE_VIRTUAL_T.txt
Type: text/x-patch
Size: 10583 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20210405/18fe4a98/attachment.bin>


More information about the wine-devel mailing list