mirror of https://git.sr.ht/~kikoodx/kble-c
22 lines
297 B
C
22 lines
297 B
C
#include <locale.h>
|
|
#include <ncurses.h>
|
|
#include <unistd.h>
|
|
|
|
#include "renderer/init.h"
|
|
|
|
void renderer_init(void) {
|
|
setlocale(LC_ALL, "");
|
|
|
|
initscr();
|
|
cbreak();
|
|
noecho();
|
|
nonl();
|
|
intrflush(stdscr, FALSE);
|
|
keypad(stdscr, TRUE);
|
|
curs_set(TRUE);
|
|
}
|
|
|
|
void renderer_deinit(void) {
|
|
endwin();
|
|
}
|