mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-12 08:21:02 -04:00
vt: always log unimplemented as warnings, not errors
This commit is contained in:
parent
cfd39c0967
commit
bf78150157
1 changed files with 3 additions and 2 deletions
5
vt.c
5
vt.c
|
|
@ -568,6 +568,7 @@ esc_dispatch(struct terminal *term, uint8_t final)
|
||||||
|
|
||||||
switch (final) {
|
switch (final) {
|
||||||
case 'B': {
|
case 'B': {
|
||||||
|
/* Configure G0-G3 to use ASCII */
|
||||||
char param = term->vt.params.idx > 0 ? term->vt.params.v[0].value : '(';
|
char param = term->vt.params.idx > 0 ? term->vt.params.v[0].value : '(';
|
||||||
|
|
||||||
switch (param) {
|
switch (param) {
|
||||||
|
|
@ -578,11 +579,11 @@ esc_dispatch(struct terminal *term, uint8_t final)
|
||||||
case ')':
|
case ')':
|
||||||
case '*':
|
case '*':
|
||||||
case '+':
|
case '+':
|
||||||
LOG_ERR("unimplemented: character charset: %c", param);
|
LOG_WARN("unimplemented: charset %c uses ASCII", param);
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
LOG_ERR("ESC <id> B: invalid charset identifier: %c", param);
|
LOG_ERR("<ESC>%cB: invalid charset identifier", param);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue