mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-07 04:34:03 -05:00
term: convert anonymous 'charsets' struct to a named struct
This commit is contained in:
parent
ce544776ab
commit
3f3feedde2
1 changed files with 6 additions and 4 deletions
10
terminal.h
10
terminal.h
|
|
@ -132,6 +132,11 @@ enum cursor_keys { CURSOR_KEYS_DONTCARE, CURSOR_KEYS_NORMAL, CURSOR_KEYS_APPLICA
|
||||||
enum keypad_keys { KEYPAD_DONTCARE, KEYPAD_NUMERICAL, KEYPAD_APPLICATION };
|
enum keypad_keys { KEYPAD_DONTCARE, KEYPAD_NUMERICAL, KEYPAD_APPLICATION };
|
||||||
enum charset { CHARSET_ASCII, CHARSET_GRAPHIC };
|
enum charset { CHARSET_ASCII, CHARSET_GRAPHIC };
|
||||||
|
|
||||||
|
struct charsets {
|
||||||
|
int selected;
|
||||||
|
enum charset set[4]; /* G0-G3 */
|
||||||
|
};
|
||||||
|
|
||||||
/* *What* to report */
|
/* *What* to report */
|
||||||
enum mouse_tracking {
|
enum mouse_tracking {
|
||||||
MOUSE_NONE,
|
MOUSE_NONE,
|
||||||
|
|
@ -178,10 +183,7 @@ struct terminal {
|
||||||
enum mouse_tracking mouse_tracking;
|
enum mouse_tracking mouse_tracking;
|
||||||
enum mouse_reporting mouse_reporting;
|
enum mouse_reporting mouse_reporting;
|
||||||
|
|
||||||
struct {
|
struct charsets charsets;
|
||||||
int selected;
|
|
||||||
enum charset set[4]; /* G0-G3 */
|
|
||||||
} charsets;
|
|
||||||
|
|
||||||
char *window_title;
|
char *window_title;
|
||||||
tll(char *) window_title_stack;
|
tll(char *) window_title_stack;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue