aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-16 16:01:24 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-16 16:01:24 +0000
commit8586c9cb913c732fc024923b02379f3796c27f17 (patch)
treeeb881d0d8429d9e61699db21f622c48ba277ecfa
parentfont: fix broken debug log (diff)
vt: there is no default charset for \e0 and \eB
-rw-r--r--vt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vt.c b/vt.c
index 439a4421..94c19c33 100644
--- a/vt.c
+++ b/vt.c
@@ -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();