diff options
| -rw-r--r-- | degesch.c | 27 | 
1 files changed, 25 insertions, 2 deletions
| @@ -5870,6 +5870,30 @@ init_poller_events (struct app_context *ctx)  	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  main (int argc, char *argv[])  { @@ -5908,8 +5932,7 @@ main (int argc, char *argv[])  	}  	opt_handler_free (&oh); - -	print_status (PROGRAM_NAME " " PROGRAM_VERSION " starting"); +	display_logo ();  	// We only need to convert to and from the terminal encoding  	setlocale (LC_CTYPE, ""); | 
