Add util.c:screen_init() to probe screen size once per boot

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-07-04 20:58:43 +02:00
1 parent 405cf4d997
commit be6f0de0df
6 files changed
+41 -13

No files matched your search

+7
View File
@@ -24,11 +24,18 @@
#ifndef FINIT_UTIL_H_
#define FINIT_UTIL_H_
#define SCREEN_WIDTH screen_cols
#include <lite/conio.h>
extern int screen_rows;
extern int screen_cols;
extern char *prognm;
char *progname (char *arg0);
void do_sleep (unsigned int sec);
char *sanitize (char *arg, size_t len);
void screen_init (void);
int screen_width (void);
#endif /* FINIT_UTIL_H_ */