mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
initctl: Use entire screen width for task/service description
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+2
-1
@@ -512,6 +512,7 @@ static int show_status(char *arg)
|
||||
printf("%-10.10s ", lvls);
|
||||
|
||||
if (!verbose) {
|
||||
int adj = screen_cols - 58;
|
||||
char *name = strrchr(svc->cmd, '/');
|
||||
|
||||
if (!name)
|
||||
@@ -519,7 +520,7 @@ static int show_status(char *arg)
|
||||
else
|
||||
name++;
|
||||
|
||||
printf("%-20.20s %-21.21s\n", name, svc->desc);
|
||||
printf("%-20.20s %-*.*s\n", name, adj, adj, svc->desc);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user