Utilities displaying a color banner now use line drawing characters to form a box...
authorArt Cancro <ajc@citadel.org>
Tue, 2 Jan 2024 21:38:07 +0000 (16:38 -0500)
committerArt Cancro <ajc@citadel.org>
Tue, 2 Jan 2024 21:38:07 +0000 (16:38 -0500)
citadel/utils/ctdldump.c
citadel/utils/ctdlload.c
citadel/utils/dbnothing.c
citadel/utils/loadtest.c

index 1605ae9e3f21f78f2a9fdf867e544ddae57b362f..9c1c0ebd0d1a7abf4455d70e844eeea25670ef4f 100644 (file)
@@ -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;
index c0cf91a8ccb912717beee3e27a91e6af7bd521aa..352b468da56c95eebf9e6388eb3764809b7d4278 100644 (file)
@@ -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;
index 005abfb7edeaf4cad6bf6e234ac9b18abbabd99a..f76b81d484e1dc752df60d74b8abffa1e31b61bc 100644 (file)
@@ -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;
index 25f6428f7321c78ad14ce9bdcdac56033380ca88..5a8d2f3a2d1c44552efda06500606bc2011ba63f 100644 (file)
@@ -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) {