vt/csi: use vt_param_get()

This commit is contained in:
Daniel Eklöf 2019-07-10 16:04:16 +02:00
parent 9df691e1af
commit 454133033c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 22 additions and 32 deletions

2
vt.c
View file

@ -599,7 +599,7 @@ esc_dispatch(struct terminal *term, uint8_t final)
case 'B': {
/* Configure G0-G3 to use ASCII */
char param = term->vt.params.idx > 0 ? term->vt.params.v[0].value : '(';
char param = vt_param_get(term, 0, '(');
switch (param) {
case '(': term->charset[0] = CHARSET_ASCII; break;