mirror of
https://github.com/troglobit/finit.git
synced 2026-10-20 11:19:35 +00:00
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:
1 parent
405cf4d997
commit
be6f0de0df
6 files changed
+41
-13
No files matched your search
@@ -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_ */
|
||||
|
||||
Reference in new issue
Block a user