summaryrefslogtreecommitdiffstats
path: root/helpers.c
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-07-20 14:55:13 -0400
committerMalfurious <m@lfurio.us>2024-04-24 13:31:08 -0400
commitd070fde6478431c71fb4a55e783a577439c7cb99 (patch)
tree1ff5f980eca499518943e4c36e5103d8be1847a8 /helpers.c
parent1b5f8d2e5a118a80a4373a7be1ca4e4eceebf7be (diff)
downloadmisplays-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.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/helpers.c b/helpers.c
index f7cc9c2..8e3be13 100644
--- a/helpers.c
+++ b/helpers.c
@@ -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);
+}