mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-18 22:05:25 -05:00
vt: tag cells that were form-feed:ed, to allow correct text reflow
To handle text reflow correctly when a line has a printable character in the last column, but was still line breaked, we need to track the fact that the slave inserted a line break here. Otherwise, when the window width is increased, we'll end up pulling up the next line, when we really should have inserted a line break.
This commit is contained in:
parent
3004c650ef
commit
4a169f5643
4 changed files with 17 additions and 4 deletions
4
vt.c
4
vt.c
|
|
@ -128,7 +128,7 @@ action_execute(struct terminal *term, uint8_t c)
|
|||
|
||||
case '\r':
|
||||
/* FF - form feed */
|
||||
term_cursor_left(term, term->cursor.point.col);
|
||||
term_formfeed(term);
|
||||
break;
|
||||
|
||||
case '\b':
|
||||
|
|
@ -361,8 +361,8 @@ action_esc_dispatch(struct terminal *term, uint8_t final)
|
|||
break;
|
||||
|
||||
case 'E':
|
||||
term_formfeed(term);
|
||||
term_linefeed(term);
|
||||
term_cursor_left(term, term->cursor.point.col);
|
||||
break;
|
||||
|
||||
case 'H':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue