mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-01 07:15:32 -04:00
csi: DECCOLM erases screen
This commit is contained in:
parent
33ea88aba6
commit
89dbc61a34
1 changed files with 15 additions and 0 deletions
15
csi.c
15
csi.c
|
|
@ -725,6 +725,10 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
case 3:
|
case 3:
|
||||||
LOG_WARN("unimplemented: 132 column mode (DECCOLM, %s)",
|
LOG_WARN("unimplemented: 132 column mode (DECCOLM, %s)",
|
||||||
csi_as_string(term, final));
|
csi_as_string(term, final));
|
||||||
|
term_erase(
|
||||||
|
term,
|
||||||
|
&(struct coord){0, 0},
|
||||||
|
&(struct coord){term->cols - 1, term->rows - 1});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 5:
|
case 5:
|
||||||
|
|
@ -831,6 +835,10 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
/* DECCOLM - 80 column mode */
|
/* DECCOLM - 80 column mode */
|
||||||
|
term_erase(
|
||||||
|
term,
|
||||||
|
&(struct coord){0, 0},
|
||||||
|
&(struct coord){term->cols - 1, term->rows - 1});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
|
|
@ -843,6 +851,13 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
term_damage_all(term);
|
term_damage_all(term);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 6: { /* DECOM */
|
||||||
|
term->origin = ORIGIN_ABSOLUTE;
|
||||||
|
struct coord new_home = term_cursor_rel_to_abs(term, 0, 0);
|
||||||
|
term_cursor_to(term, new_home.row, new_home.col);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case 7:
|
case 7:
|
||||||
term->auto_margin = false;
|
term->auto_margin = false;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue