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