I decided that using 4 SPACES is better than mixing with tabs.

This commit is contained in:
2025-10-18 18:18:29 +02:00
parent e958fcdafe
commit f5faf5ae8c
4 changed files with 182 additions and 177 deletions

29
ui.c
View File

@@ -11,26 +11,27 @@
#include "ui.h"
void ui_init(void)
void
ui_init(void)
{
srand(time(NULL));
initscr();
start_color();
init_pair(UI_GREEN, COLOR_GREEN, COLOR_BLACK);
init_pair(UI_RED, COLOR_RED, COLOR_BLACK);
init_pair(UI_BLUE, COLOR_BLUE, COLOR_BLACK);
cbreak();
noecho();
nonl();
intrflush(stdscr, FALSE);
keypad(stdscr, TRUE);
clear();
refresh();
initscr();
start_color();
init_pair(UI_GREEN, COLOR_GREEN, COLOR_BLACK);
init_pair(UI_RED, COLOR_RED, COLOR_BLACK);
init_pair(UI_BLUE, COLOR_BLUE, COLOR_BLACK);
cbreak();
noecho();
nonl();
intrflush(stdscr, FALSE);
keypad(stdscr, TRUE);
clear();
refresh();
}
void ui_end()
{
endwin();
endwin();
}
void ui_string(size_t x, size_t y, char *s)