mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-31 07:11:09 -04:00
vt/csi: use vt_param_get()
This commit is contained in:
parent
9df691e1af
commit
454133033c
2 changed files with 22 additions and 32 deletions
2
vt.c
2
vt.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue