summaryrefslogtreecommitdiffstats
path: root/smenu.h
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2022-01-06 20:53:51 +0100
committerpgen <p.gen.progs@gmail.com>2022-01-06 20:53:51 +0100
commit1876444897e8ddb10082b7a588ba830f71a6bbc0 (patch)
tree38fb716acb9395ed55388ea3a40138fa4bea78e8 /smenu.h
parent73b4707b66f23104b8c2122b541df73dc558319d (diff)
Use enum for the color method (classic or ANSI)
Diffstat (limited to 'smenu.h')
-rw-r--r--smenu.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/smenu.h b/smenu.h
index baf1b41..649fbb5 100644
--- a/smenu.h
+++ b/smenu.h
@@ -91,6 +91,14 @@ typedef enum attribute_settings
FORCED /* an attribute setting has been given in the command line. */
} attr_set_t;
+/* Method used to interpret the color numbers. */
+/* """"""""""""""""""""""""""""""""""""""""""" */
+typedef enum color_method
+{
+ CLASSIC,
+ ANSI
+} color_method_t;
+
/* Constant to distinguish between the various search modes. */
/* """"""""""""""""""""""""""""""""""""""""""""""""""""""""" */
typedef enum search_modes
@@ -223,12 +231,12 @@ struct attrib_s
/* """"""""""""""""""""""""""""""""""""""""""""""""""" */
struct term_s
{
- int ncolumns; /* number of columns. */
- int nlines; /* number of lines. */
- int curs_column; /* current cursor column. */
- int curs_line; /* current cursor line. */
- short colors; /* number of available colors. */
- short color_method; /* color method (0=classic (0-7), 1=ANSI). */
+ int ncolumns; /* number of columns. */
+ int nlines; /* number of lines. */
+ int curs_column; /* current cursor column. */
+ int curs_line; /* current cursor line. */
+ short colors; /* number of available colors. */
+ color_method_t color_method; /* color method (CLASSIC (0-7), ANSI). */
char has_cursor_up; /* has cuu1 terminfo capability. */
char has_cursor_down; /* has cud1 terminfo capability. */