mirror of
https://github.com/troglobit/finit.git
synced 2026-10-22 11:36:07 +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
+3
-2
@@ -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[] = " .....................................................................";
|
||||
|
||||
|
||||
Reference in new issue
Block a user