mirror of
https://github.com/troglobit/finit.git
synced 2026-10-26 12:14:37 +00:00
Move all custom banner() handling to configure script.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
195f17ae08
commit
231539cd7d
2 files changed
+8
-9
No files matched your search
@@ -55,16 +55,14 @@ uev_ctx_t *ctx = NULL; /* Main loop context */
|
||||
|
||||
static int banner(void)
|
||||
{
|
||||
char buf[42] = INIT_HEADING;
|
||||
const char separator[] = "========================================================================";
|
||||
|
||||
if (!verbose)
|
||||
return 0;
|
||||
|
||||
delline();
|
||||
#ifdef INIT_HEADING
|
||||
echo("%s", INIT_HEADING);
|
||||
#else
|
||||
echo("Finit v" VERSION);
|
||||
echo("===================================================================");
|
||||
#endif
|
||||
fprintf(stderr, "\e[2K\e[1m%s %.*s\e[0m\n", buf, 66 - (int)strlen(buf), separator);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user