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