degesch: add a fancy logo
It's all about the looks, man.
This commit is contained in:
parent
0ee80e4fdc
commit
7636ebb149
27
degesch.c
27
degesch.c
@ -5870,6 +5870,30 @@ init_poller_events (struct app_context *ctx)
|
|||||||
poller_fd_set (&ctx->tty_event, POLLIN);
|
poller_fd_set (&ctx->tty_event, POLLIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
display_logo (void)
|
||||||
|
{
|
||||||
|
const char *logo =
|
||||||
|
" __ __ \n"
|
||||||
|
" __/ / ____ ____ ____ ____ ____ / /_ \n"
|
||||||
|
" / / / , / / / / , / / __/ / __/ / __ \\ \n"
|
||||||
|
" / / / / __/ / / / / __/ /_ / / /_ / / / / \n"
|
||||||
|
" /___/ /___/ /_ / /___/ /___/ /___/ /_/ /_/ \n"
|
||||||
|
" /___/ \n"
|
||||||
|
" ";
|
||||||
|
|
||||||
|
struct str_vector v;
|
||||||
|
str_vector_init (&v);
|
||||||
|
char *x = xstrdup_printf ("%s%s",
|
||||||
|
logo, PROGRAM_NAME " " PROGRAM_VERSION " starting");
|
||||||
|
split_str (x, '\n', &v);
|
||||||
|
free (x);
|
||||||
|
|
||||||
|
for (size_t i = 0; i < v.len; i++)
|
||||||
|
print_status ("%s", v.vector[i]);
|
||||||
|
str_vector_free (&v);
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
@ -5908,8 +5932,7 @@ main (int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
opt_handler_free (&oh);
|
opt_handler_free (&oh);
|
||||||
|
display_logo ();
|
||||||
print_status (PROGRAM_NAME " " PROGRAM_VERSION " starting");
|
|
||||||
|
|
||||||
// We only need to convert to and from the terminal encoding
|
// We only need to convert to and from the terminal encoding
|
||||||
setlocale (LC_CTYPE, "");
|
setlocale (LC_CTYPE, "");
|
||||||
|
Loading…
Reference in New Issue
Block a user