mirror of
https://github.com/troglobit/finit.git
synced 2026-10-22 11:36:07 +00:00
Refactor, use libite (-lite) version of initscr()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
52fe525442
commit
14ee218443
2 files changed
+10
-55
No files matched your search
+9
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user