mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
vt: implement SI/SO (shift in, shift out)
This enables switching between the G0 and G1 charsets.
This commit is contained in:
parent
6077b57ca5
commit
6ac115bffd
1 changed files with 10 additions and 0 deletions
10
vt.c
10
vt.c
|
|
@ -810,6 +810,16 @@ action(struct terminal *term, enum action _action, uint8_t c)
|
|||
break;
|
||||
}
|
||||
|
||||
case '\016':
|
||||
/* SO - shift out */
|
||||
term->selected_charset = 1; /* G1 */
|
||||
break;
|
||||
|
||||
case '\017':
|
||||
/* SI - shift in */
|
||||
term->selected_charset = 0; /* G0 */
|
||||
break;
|
||||
|
||||
default:
|
||||
LOG_ERR("execute: unimplemented: %c (0x%02x)", c, c);
|
||||
abort();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue