diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2024-08-28 13:58:53 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2024-08-28 13:58:53 +0330 |
commit | 86fb0b3918dca172ce1ce0c1c5fffd039f824a15 (patch) | |
tree | df01bdb0164285c40b7769ab913fbcfc25ea278c /src/ui/tui.h | |
parent | 412c8968057bac2e7df1a2bd47b6124cc25f21a7 (diff) |
now \n works in text
changed bool size
changed example
Diffstat (limited to 'src/ui/tui.h')
-rw-r--r-- | src/ui/tui.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/tui.h b/src/ui/tui.h index 0ca71b3..b21395a 100644 --- a/src/ui/tui.h +++ b/src/ui/tui.h @@ -4,6 +4,7 @@ #include <stdlib.h> #include <sys/ioctl.h> #include <termios.h> +#include <stdint.h> typedef enum MOUSE_BUTTON { MOUSE_BUTTON_LEFT_CLICK = 32, @@ -22,7 +23,7 @@ typedef struct MOUSE_ACTION { typedef void (*ON_CLICK_CALLBACK)(MOUSE_ACTION mouse_action); #ifndef __cplusplus -typedef enum bool { false = 0, true = 1 } bool; +typedef enum bool : uint8_t { false = 0, true = 1 } bool; #endif typedef enum COLOR { |