mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +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
+1
-3
@@ -37,9 +37,6 @@
|
||||
#include <sys/un.h>
|
||||
#include <lite/lite.h>
|
||||
|
||||
#define SCREEN_WIDTH screen_width()
|
||||
#include <lite/conio.h>
|
||||
|
||||
#include "finit.h"
|
||||
#include "cond.h"
|
||||
#include "serv.h"
|
||||
@@ -662,6 +659,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
screen_init();
|
||||
if (optind < argc) {
|
||||
char *cmd = argv[optind++];
|
||||
char arg[120] = "";
|
||||
|
||||
Reference in new issue
Block a user