From: Art Cancro Date: Tue, 2 Jan 2024 21:38:07 +0000 (-0500) Subject: Utilities displaying a color banner now use line drawing characters to form a box... X-Git-Tag: v997~45 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=485e3af63146f7c8a9f8d5688c73ba65bd002794 Utilities displaying a color banner now use line drawing characters to form a box instead of clearing to the end of the line with the background color. The latter does not have the desired effect on all terminals. --- diff --git a/citadel/utils/ctdldump.c b/citadel/utils/ctdldump.c index 1605ae9e3..9c1c0ebd0 100644 --- a/citadel/utils/ctdldump.c +++ b/citadel/utils/ctdldump.c @@ -359,12 +359,14 @@ int main(int argc, char **argv) { char *ctdldir = CTDLDIR; // display the greeting - fprintf(stderr, "\033[44m\033[33m\033[1m \033[K\033[0m\n" - "\033[44m\033[33m\033[1m DB Dump utility for Citadel \033[K\033[0m\n" - "\033[44m\033[33m\033[1m Copyright (c) 2023-2024 by citadel.org et al. \033[K\033[0m\n" - "\033[44m\033[33m\033[1m This program is open source software. Use, duplication, or disclosure \033[K\033[0m\n" - "\033[44m\033[33m\033[1m is subject to the terms of the GNU General Public license v3. \033[K\033[0m\n" - "\033[44m\033[33m\033[1m \033[K\033[0m\n"); + fprintf(stderr, "\033[44m\033[1m" + "╔════════════════════════════════════════════════════════════════════════╗\n" + "║ DB Dump utility for Citadel ║\n" + "║ Copyright (c) 2023-2024 by citadel.org et al. ║\n" + "║ This program is open source software. Use, duplication, or disclosure ║\n" + "║ is subject to the terms of the GNU General Public license v3. ║\n" + "╚════════════════════════════════════════════════════════════════════════╝\033[0m\n" + ); // Parse command line int a; diff --git a/citadel/utils/ctdlload.c b/citadel/utils/ctdlload.c index c0cf91a8c..352b468da 100644 --- a/citadel/utils/ctdlload.c +++ b/citadel/utils/ctdlload.c @@ -726,12 +726,14 @@ int main(int argc, char **argv) { char *ctdldir = CTDLDIR; // display the greeting - fprintf(stderr, "\033[44m\033[33m\033[1m \033[K\033[0m\n" - "\033[44m\033[33m\033[1m DB Load utility for Citadel \033[K\033[0m\n" - "\033[44m\033[33m\033[1m Copyright (c) 2023-2024 by citadel.org et al. \033[K\033[0m\n" - "\033[44m\033[33m\033[1m This program is open source software. Use, duplication, or disclosure \033[K\033[0m\n" - "\033[44m\033[33m\033[1m is subject to the terms of the GNU General Public license v3. \033[K\033[0m\n" - "\033[44m\033[33m\033[1m \033[K\033[0m\n"); + fprintf(stderr, "\033[44m\033[1m" + "╔════════════════════════════════════════════════════════════════════════╗\n" + "║ DB Load utility for Citadel ║\n" + "║ Copyright (c) 2023-2024 by citadel.org et al. ║\n" + "║ This program is open source software. Use, duplication, or disclosure ║\n" + "║ is subject to the terms of the GNU General Public license v3. ║\n" + "╚════════════════════════════════════════════════════════════════════════╝\033[0m\n" + ); // Parse command line int a; diff --git a/citadel/utils/dbnothing.c b/citadel/utils/dbnothing.c index 005abfb7e..f76b81d48 100644 --- a/citadel/utils/dbnothing.c +++ b/citadel/utils/dbnothing.c @@ -38,12 +38,14 @@ int main(int argc, char **argv) { char *ctdldir = CTDLDIR; // display the greeting - fprintf(stderr, "\033[44m\033[33m\033[1m \033[K\033[0m\n" - "\033[44m\033[33m\033[1m dbnothing utility for Citadel \033[K\033[0m\n" - "\033[44m\033[33m\033[1m Copyright (c) 2023-2024 by citadel.org et al. \033[K\033[0m\n" - "\033[44m\033[33m\033[1m This program is open source software. Use, duplication, or disclosure \033[K\033[0m\n" - "\033[44m\033[33m\033[1m is subject to the terms of the GNU General Public license v3. \033[K\033[0m\n" - "\033[44m\033[33m\033[1m \033[K\033[0m\n"); + fprintf(stderr, "\033[44m\033[1m" + "╔════════════════════════════════════════════════════════════════════════╗\n" + "║ dbnothing utility for Citadel ║\n" + "║ Copyright (c) 2023-2024 by citadel.org et al. ║\n" + "║ This program is open source software. Use, duplication, or disclosure ║\n" + "║ is subject to the terms of the GNU General Public license v3. ║\n" + "╚════════════════════════════════════════════════════════════════════════╝\033[0m\n" + ); // Parse command line int a; diff --git a/citadel/utils/loadtest.c b/citadel/utils/loadtest.c index 25f6428f7..5a8d2f3a2 100644 --- a/citadel/utils/loadtest.c +++ b/citadel/utils/loadtest.c @@ -348,13 +348,14 @@ int main(int argc, char **argv) { int nthreads = 3; int row, col; - fprintf(stderr, "\033[2J\033[H" - "\033[44m\033[33m\033[1m \033[K\033[0m\n" - "\033[44m\033[33m\033[1m Load testing utility for Citadel \033[K\033[0m\n" - "\033[44m\033[33m\033[1m Copyright (c) 2023-2024 by citadel.org et al. \033[K\033[0m\n" - "\033[44m\033[33m\033[1m This program is open source software. Use, duplication, or disclosure \033[K\033[0m\n" - "\033[44m\033[33m\033[1m is subject to the terms of the GNU General Public license v3. \033[K\033[0m\n" - "\033[44m\033[33m\033[1m \033[K\033[0m\n"); + fprintf(stderr, "\033[2J\033[H\033[44m\033[1m" + "╔════════════════════════════════════════════════════════════════════════╗\n" + "║ Load testing utility for Citadel ║\n" + "║ Copyright (c) 2023-2024 by citadel.org et al. ║\n" + "║ This program is open source software. Use, duplication, or disclosure ║\n" + "║ is subject to the terms of the GNU General Public license v3. ║\n" + "╚════════════════════════════════════════════════════════════════════════╝\033[0m\n" + ); // Parse command line while ((i = getopt(argc, argv, "h:n:")) != EOF) {