mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-31 07:11:09 -04: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
|
|
@ -93,6 +93,8 @@
|
||||||
* Sixel handling when scrollback wraps around.
|
* Sixel handling when scrollback wraps around.
|
||||||
* Foot now issues much fewer `wl_surface_damage_buffer()` calls
|
* Foot now issues much fewer `wl_surface_damage_buffer()` calls
|
||||||
(https://codeberg.org/dnkl/foot/issues/35).
|
(https://codeberg.org/dnkl/foot/issues/35).
|
||||||
|
* `C0::VT` to be processed as `C0::LF`. Previously, `C0::VT` would
|
||||||
|
only move the cursor down, but never scroll.
|
||||||
|
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
|
||||||
9
vt.c
9
vt.c
|
|
@ -147,13 +147,10 @@ action_execute(struct terminal *term, uint8_t c)
|
||||||
}
|
}
|
||||||
|
|
||||||
case '\n':
|
case '\n':
|
||||||
/* LF - line feed */
|
|
||||||
term_linefeed(term);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case '\v':
|
case '\v':
|
||||||
/* VT - vertical tab */
|
/* LF - \n - line feed */
|
||||||
term_cursor_down(term, 1);
|
/* VT - \v - vertical tab */
|
||||||
|
term_linefeed(term);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '\r':
|
case '\r':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue