I decided that using 4 SPACES is better than mixing with tabs.
This commit is contained in:
29
ui.c
29
ui.c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user