mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
vt: process C0::VT the same way we process C0::LF
Previously, C0::VT was implemented as a simple 'cursor down'. I.e. it would behave as LF **until** it reached the bottom of the screen, where instead of scrolling, it became a no-op. See https://vt100.net/docs/vt102-ug/chapter5.html
This commit is contained in:
parent
7357bb54eb
commit
4849a16f37
2 changed files with 5 additions and 6 deletions
9
vt.c
9
vt.c
|
|
@ -147,13 +147,10 @@ action_execute(struct terminal *term, uint8_t c)
|
|||
}
|
||||
|
||||
case '\n':
|
||||
/* LF - line feed */
|
||||
term_linefeed(term);
|
||||
break;
|
||||
|
||||
case '\v':
|
||||
/* VT - vertical tab */
|
||||
term_cursor_down(term, 1);
|
||||
/* LF - \n - line feed */
|
||||
/* VT - \v - vertical tab */
|
||||
term_linefeed(term);
|
||||
break;
|
||||
|
||||
case '\r':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue