From 1c23ce4d7ba4f9aa25c2a4f96eb233e081b40526 Mon Sep 17 00:00:00 2001 From: 8nlight <8nlight@disroot.org> Date: Fri, 15 Sep 2023 10:21:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.c b/main.c index 6cbe6ed..358f80f 100644 --- a/main.c +++ b/main.c @@ -38,6 +38,9 @@ int main(void) { noecho(); timeout(0); curs_set(0); + start_color(); + + init_pair(1, COLOR_RED, COLOR_BLACK); while (1) { @@ -57,7 +60,9 @@ int main(void) { /* Start y */ unsigned int j = 3; + attron(COLOR_PAIR(1)); mvprintw(j, 0, ">"); + attroff(COLOR_PAIR(1)); for (size_t i = cursor; i < cursor + 10; i++) { if (i > timer_size)