vt: dummy implementation of of "ESC (B" (character charset)

This commit is contained in:
Daniel Eklöf 2019-06-29 20:49:00 +02:00
parent 63fb7a9374
commit ed867a78bb
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

21
vt.c
View file

@ -567,6 +567,27 @@ esc_dispatch(struct terminal *term, uint8_t final)
#endif
switch (final) {
case 'B': {
char param = term->vt.params.idx > 0 ? term->vt.params.v[0].value : '(';
switch (param) {
case '(':
/* This is the default charset */
break;
case ')':
case '*':
case '+':
LOG_ERR("unimplemented: character charset: %c", param);
return false;
default:
LOG_ERR("ESC <id> B: invalid charset identifier: %c", param);
return false;
}
break;
}
case 'M':
/* ri - reverse index (scroll reverse) */
grid_scroll_reverse(&term->grid, 1);