vt/csi: recognize the reset sequence sent by 'reset'

However, we don't (yet) actually reset the terminal
This commit is contained in:
Daniel Eklöf 2019-07-17 10:39:38 +02:00
parent e944eb85ac
commit 28eef93742
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 28 additions and 0 deletions

24
csi.c
View file

@ -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();

4
vt.c
View file

@ -598,6 +598,10 @@ esc_dispatch(struct terminal *term, uint8_t final)
term->vt.attrs = term->vt.saved_attrs;
break;
case 'c':
LOG_WARN("unimplemented: reset to initial state");
break;
case 'B': {
/* Configure G0-G3 to use ASCII */
char param = term->vt.private != 0 ? term->vt.private : '(';