diff options
author | Malfurious <m@lfurio.us> | 2023-07-20 14:55:13 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2024-04-24 13:31:08 -0400 |
commit | d070fde6478431c71fb4a55e783a577439c7cb99 (patch) | |
tree | 1ff5f980eca499518943e4c36e5103d8be1847a8 /helpers.c | |
parent | 1b5f8d2e5a118a80a4373a7be1ca4e4eceebf7be (diff) | |
download | misplays-d070fde6478431c71fb4a55e783a577439c7cb99.tar.gz misplays-d070fde6478431c71fb4a55e783a577439c7cb99.zip |
Multithread version 1
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'helpers.c')
-rw-r--r-- | helpers.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -20,6 +20,13 @@ void cursinit(void) { curs_set(FALSE); timeout(25); refresh(); + + start_color(); + use_default_colors(); + + init_pair(1, COLOR_GREEN, -1); + init_pair(2, COLOR_CYAN, -1); + init_pair(3, COLOR_RED, -1); } void cursupdate(void) { @@ -57,3 +64,11 @@ int pprintw(PANEL *pan, const char *fmt, ...) { int pclear(PANEL *pan) { return wclear(panel_window(pan)); } + +int pattron(PANEL *pan, int attrs) { + return wattron(panel_window(pan), attrs); +} + +int pattroff(PANEL *pan, int attrs) { + return wattroff(panel_window(pan), attrs); +} |