mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-15 05:33:58 -04:00
vt/csi: recognize the reset sequence sent by 'reset'
However, we don't (yet) actually reset the terminal
This commit is contained in:
parent
e944eb85ac
commit
28eef93742
2 changed files with 28 additions and 0 deletions
24
csi.c
24
csi.c
|
|
@ -740,6 +740,16 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
term->cursor_keys_mode = CURSOR_KEYS_NORMAL;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
LOG_WARN("unimplemented: 132 column mode (DECCOLM, %s)",
|
||||
csi_as_string(term, final));
|
||||
break;
|
||||
|
||||
case 4:
|
||||
LOG_WARN("unimplemented: Smooth (Slow) Scroll (DECSCLM, %s)",
|
||||
csi_as_string(term, final));
|
||||
break;
|
||||
|
||||
case 5:
|
||||
term->reverse = false;
|
||||
term_damage_all(term);
|
||||
|
|
@ -897,6 +907,20 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
break; /* private == ' ' */
|
||||
}
|
||||
|
||||
case '!': {
|
||||
switch (final) {
|
||||
case 'p':
|
||||
LOG_WARN("unimplemented: soft reset");
|
||||
break;
|
||||
|
||||
default:
|
||||
LOG_ERR("unimplemented: %s", csi_as_string(term, final));
|
||||
abort();
|
||||
break;
|
||||
}
|
||||
break; /* private == '!' */
|
||||
}
|
||||
|
||||
default:
|
||||
LOG_ERR("unimplemented: %s", csi_as_string(term, final));
|
||||
abort();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue