mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-22 06:46:49 -04:00
vt: there is no default charset for \e0 and \eB
This commit is contained in:
parent
30d5847d06
commit
8586c9cb91
1 changed files with 4 additions and 2 deletions
6
vt.c
6
vt.c
|
|
@ -606,13 +606,14 @@ esc_dispatch(struct terminal *term, uint8_t final)
|
||||||
|
|
||||||
case 'B': {
|
case 'B': {
|
||||||
/* Configure G0-G3 to use ASCII */
|
/* 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) {
|
switch (param) {
|
||||||
case '(': term->charset[0] = CHARSET_ASCII; break;
|
case '(': term->charset[0] = CHARSET_ASCII; break;
|
||||||
case ')': term->charset[1] = CHARSET_ASCII; break;
|
case ')': term->charset[1] = CHARSET_ASCII; break;
|
||||||
case '*': term->charset[2] = CHARSET_ASCII; break;
|
case '*': term->charset[2] = CHARSET_ASCII; break;
|
||||||
case '+': term->charset[3] = CHARSET_ASCII; break;
|
case '+': term->charset[3] = CHARSET_ASCII; break;
|
||||||
|
case 0: break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
UNHANDLED();
|
UNHANDLED();
|
||||||
|
|
@ -650,13 +651,14 @@ esc_dispatch(struct terminal *term, uint8_t final)
|
||||||
|
|
||||||
case '0': {
|
case '0': {
|
||||||
/* Configure G0-G3 to use special chars + line drawing */
|
/* 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) {
|
switch (param) {
|
||||||
case '(': term->charset[0] = CHARSET_GRAPHIC; break;
|
case '(': term->charset[0] = CHARSET_GRAPHIC; break;
|
||||||
case ')': term->charset[1] = CHARSET_GRAPHIC; break;
|
case ')': term->charset[1] = CHARSET_GRAPHIC; break;
|
||||||
case '*': term->charset[2] = CHARSET_GRAPHIC; break;
|
case '*': term->charset[2] = CHARSET_GRAPHIC; break;
|
||||||
case '+': term->charset[3] = CHARSET_GRAPHIC; break;
|
case '+': term->charset[3] = CHARSET_GRAPHIC; break;
|
||||||
|
case 0: break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
UNHANDLED();
|
UNHANDLED();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue