vt: always log unimplemented as warnings, not errors

This commit is contained in:
Daniel Eklöf 2019-07-03 16:21:09 +02:00
parent cfd39c0967
commit bf78150157
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

5
vt.c
View file

@ -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;