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

+3 -2
View File
@@ -32,13 +32,14 @@
#include <stdarg.h>
#include <sys/ioctl.h>
#include <lite/lite.h>
#include <lite/conio.h>
#include "finit.h"
#include "helpers.h"
#include "private.h"
#include "util.h"
#include "utmp-api.h"
char *strip_line(char *line)
{
char *ptr;
@@ -79,7 +80,7 @@ static int print_timestamp(void)
void printv(const char *fmt, va_list ap)
{
char buf[80];
char buf[SCREEN_WIDTH];
size_t len;
const char dots[] = " .....................................................................";