Refactor, use libite (-lite) version of initscr()

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-07-09 16:25:22 +02:00
1 parent 52fe525442
commit 14ee218443
2 files changed
+10 -55

No files matched your search

+9 -2
View File
@@ -24,13 +24,20 @@
#ifndef FINIT_UTIL_H_
#define FINIT_UTIL_H_
#define SCREEN_WIDTH screen_cols
#include <lite/conio.h>
#include "config.h"
#ifdef HAVE_TERMIOS_H /* for screen_width() */
#include <poll.h>
#include <stdio.h>
#include <termios.h>
#endif
extern int screen_rows;
extern int screen_cols;
extern char *prognm;
#define SCREEN_WIDTH screen_cols
#include <lite/conio.h>
char *progname (char *arg0);
void do_sleep (unsigned int sec);
char *sanitize (char *arg, size_t len);