[PATCH v2 3/3] conhost: Fix delayed wrapping around when ENABLE_VIRTUAL_TERMINAL_PROCESSING is set.

Jacek Caban jacek at codeweavers.com
Fri Apr 2 08:11:04 CDT 2021


On 4/2/21 3:06 PM, Gabriel Ivăncescu wrote:
> I feel like I'll have to add a hack to do this and I don't like it. For 
> example, check for delayed newline and len == 1 and then decrement 
> tty_cursor_x *before* tty_sync is called, so it doesn't put the \b. (I 
> don't know if len == 1 is a good condition, if I have to add this hack 
> I'll probably test it some more)

Unless I'm missing something, if you leave cursor_x == width, then tty 
cursor will be already in sync so there will be no reason to add '\b's.

Jacek



More information about the wine-devel mailing list