diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-16 16:01:24 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-16 16:01:24 +0000 |
| commit | 8586c9cb913c732fc024923b02379f3796c27f17 (patch) | |
| tree | eb881d0d8429d9e61699db21f622c48ba277ecfa | |
| parent | font: fix broken debug log (diff) | |
vt: there is no default charset for \e0 and \eB
| -rw-r--r-- | vt.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -606,13 +606,14 @@ esc_dispatch(struct terminal *term, uint8_t final) case 'B': { /* Configure G0-G3 to use ASCII */ - char param = term->vt.private[0] != 0 ? term->vt.private[0] : '('; + char param = term->vt.private[0] != 0 ? term->vt.private[0] : 0; switch (param) { case '(': term->charset[0] = CHARSET_ASCII; break; case ')': term->charset[1] = CHARSET_ASCII; break; case '*': term->charset[2] = CHARSET_ASCII; break; case '+': term->charset[3] = CHARSET_ASCII; break; + case 0: break; default: UNHANDLED(); @@ -650,13 +651,14 @@ esc_dispatch(struct terminal *term, uint8_t final) case '0': { /* Configure G0-G3 to use special chars + line drawing */ - char param = term->vt.private[0] != 0 ? term->vt.private[0] : '('; + char param = term->vt.private[0] != 0 ? term->vt.private[0] : 0; switch (param) { case '(': term->charset[0] = CHARSET_GRAPHIC; break; case ')': term->charset[1] = CHARSET_GRAPHIC; break; case '*': term->charset[2] = CHARSET_GRAPHIC; break; case '+': term->charset[3] = CHARSET_GRAPHIC; break; + case 0: break; default: UNHANDLED(); |
