mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-23 05:33:57 -04:00
vt: track charsets G0-G3 and support either ASCII or graphical mode
This commit is contained in:
parent
dd5a3b1009
commit
ea6e06d689
2 changed files with 12 additions and 15 deletions
|
|
@ -126,6 +126,7 @@ struct kbd {
|
|||
|
||||
enum decckm { DECCKM_CSI, DECCKM_SS3 };
|
||||
enum keypad_mode { KEYPAD_NUMERICAL, KEYPAD_APPLICATION };
|
||||
enum charset { CHARSET_ASCII, CHARSET_GRAPHIC };
|
||||
|
||||
struct terminal {
|
||||
pid_t slave;
|
||||
|
|
@ -138,6 +139,9 @@ struct terminal {
|
|||
bool insert_mode;
|
||||
bool bracketed_paste;
|
||||
|
||||
int selected_charset;
|
||||
enum charset charset[4]; /* G0-G3 */
|
||||
|
||||
struct vt vt;
|
||||
struct kbd kbd;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue