initctl: Use actual terminal/screen width for table listings

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-07-04 12:55:34 +02:00
parent 91480a0f02
commit 405cf4d997
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
#include <sys/un.h>
#include <lite/lite.h>
#define SCREEN_WIDTH 80 /* Calculate screen width as well, later */
#define SCREEN_WIDTH screen_width()
#include <lite/conio.h>
#include "finit.h"
+2 -2
View File
@@ -28,9 +28,9 @@
#include <stdio.h>
#include <lite/lite.h>
#define SCREEN_WIDTH 80 /* Calculate screen width as well, later */
#define SCREEN_WIDTH screen_width()
#include <lite/conio.h>
#include "util.h"
static const char *cwd;
static const char *available = FINIT_RCSD "/available";