mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-02 07:06:41 +03:00
Restore terminal line length and cursor position on refresh.
This keeps printfs from blowing away the line state (M-m M-m won't erase your prompt).
This commit is contained in:
parent
a1c09592b8
commit
d2391e78f8
@ -591,9 +591,11 @@ static void
|
||||
_term_it_refresh_line(u3_utty* uty_u)
|
||||
{
|
||||
c3_w len_w = uty_u->tat_u.mir.len_w;
|
||||
c3_w cus_w = uty_u->tat_u.mir.cus_w;
|
||||
|
||||
_term_it_show_clear(uty_u);
|
||||
_term_it_show_wide(uty_u, len_w, uty_u->tat_u.mir.lin_w);
|
||||
_term_it_show_line(uty_u, uty_u->tat_u.mir.lin_w, len_w);
|
||||
_term_it_show_cursor(uty_u, cus_w);
|
||||
}
|
||||
|
||||
/* _term_it_show_more(): new current line.
|
||||
|
Loading…
Reference in New Issue
Block a user