about summary refs log tree commit diff stats
path: root/src/windows.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-09-09 22:22:14 +0100
committerJames Booth <boothj5@gmail.com>2012-09-09 22:22:14 +0100
commitf81628a466d14d739b1ff59bb25a94ada8e2bc09 (patch)
tree8d55e33f05b3733ef32211dd18da6ffeb97f05d5 /src/windows.c
parent0f3c1e56d2bbc665f3f43983cee2b750ca4bf0da (diff)
downloadprofani-tty-f81628a466d14d739b1ff59bb25a94ada8e2bc09.tar.gz
Added summary info when splash enabled
Diffstat (limited to 'src/windows.c')
-rw-r--r--src/windows.c98
1 files changed, 66 insertions, 32 deletions
diff --git a/src/windows.c b/src/windows.c
index eaa78ce2..e4bed428 100644
--- a/src/windows.c
+++ b/src/windows.c
@@ -61,7 +61,7 @@ static int dirty;
 static int max_cols = 0;
 
 static void _create_windows(void);
-static void _print_splash_logo(WINDOW *win);
+static void _cons_splash_logo(void);
 static void _cons_show_basic_help(void);
 static int _find_prof_win_index(const char * const contact);
 static int _new_prof_win(const char * const contact);
@@ -654,29 +654,30 @@ _create_windows(void)
     _wins[0] = cons;
     _cons_win = _wins[0].win;
     
-//    wattrset(_cons_win, A_BOLD);
-    _win_show_time(_cons_win);
     if (prefs_get_showsplash()) {
-        _print_splash_logo(_cons_win);
+        _cons_splash_logo();
     } else {
-        wprintw(_cons_win, "Welcome to Profanity, version %s\n", PACKAGE_VERSION);
-        _win_show_time(_cons_win);
-        wprintw(_cons_win, "Copyright (C) 2012 James Booth <%s>.\n", PACKAGE_BUGREPORT);
-        _win_show_time(_cons_win);
-        wprintw(_cons_win, "License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n");
-        _win_show_time(_cons_win);
-        wprintw(_cons_win, "\n");
         _win_show_time(_cons_win);
-        wprintw(_cons_win, "This is free software; you are free to change and redistribute it.\n");
-        _win_show_time(_cons_win);
-        wprintw(_cons_win, "There is NO WARRANTY, to the extent permitted by law.\n");
-        _win_show_time(_cons_win);
-        wprintw(_cons_win, "\n");
-        _win_show_time(_cons_win);
-        wprintw(_cons_win, "Type '/help' to show complete help.\n");
-        
-        _cons_show_basic_help();
+        wprintw(_cons_win, "Welcome to Profanity, version %s\n", PACKAGE_VERSION);
     }
+
+    _win_show_time(_cons_win);
+    wprintw(_cons_win, "Copyright (C) 2012 James Booth <%s>.\n", PACKAGE_BUGREPORT);
+    _win_show_time(_cons_win);
+    wprintw(_cons_win, "License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n");
+    _win_show_time(_cons_win);
+    wprintw(_cons_win, "\n");
+    _win_show_time(_cons_win);
+    wprintw(_cons_win, "This is free software; you are free to change and redistribute it.\n");
+    _win_show_time(_cons_win);
+    wprintw(_cons_win, "There is NO WARRANTY, to the extent permitted by law.\n");
+    _win_show_time(_cons_win);
+    wprintw(_cons_win, "\n");
+    _win_show_time(_cons_win);
+    wprintw(_cons_win, "Type '/help' to show complete help.\n");
+    _win_show_time(_cons_win);
+    wprintw(_cons_win, "\n");
+        
     prefresh(_cons_win, 0, 0, 1, 0, rows-3, cols-1);
 
     dirty = TRUE;
@@ -697,18 +698,51 @@ _create_windows(void)
 }
 
 static void
-_print_splash_logo(WINDOW *win)
-{
-    wprintw(win, "Welcome to\n");
-    wattron(win, COLOUR_OFFLINE);
-    wprintw(win, "                   ___            _           \n");
-    wprintw(win, "                  / __)          (_)_         \n");
-    wprintw(win, " ____   ____ ___ | |__ ____ ____  _| |_ _   _ \n");
-    wprintw(win, "|  _ \\ / ___) _ \\|  __) _  |  _ \\| |  _) | | |\n");
-    wprintw(win, "| | | | |  | |_| | | ( ( | | | | | | |_| |_| |\n");
-    wprintw(win, "| ||_/|_|   \\___/|_|  \\_||_|_| |_|_|\\___)__  |\n");
-    wprintw(win, "|_|                                    (____/ \n");
-    wattroff(win, COLOUR_OFFLINE);
+_cons_splash_logo(void)
+{
+    _win_show_time(_cons_win);
+    wprintw(_cons_win, "Welcome to\n");
+
+
+    _win_show_time(_cons_win);
+    wattron(_cons_win, COLOUR_OFFLINE);
+    wprintw(_cons_win, "                   ___            _           \n");
+    wattroff(_cons_win, COLOUR_OFFLINE);
+
+    _win_show_time(_cons_win);
+    wattron(_cons_win, COLOUR_OFFLINE);
+    wprintw(_cons_win, "                  / __)          (_)_         \n");
+    wattroff(_cons_win, COLOUR_OFFLINE);
+
+    _win_show_time(_cons_win);
+    wattron(_cons_win, COLOUR_OFFLINE);
+    wprintw(_cons_win, " ____   ____ ___ | |__ ____ ____  _| |_ _   _ \n");
+    wattroff(_cons_win, COLOUR_OFFLINE);
+
+    _win_show_time(_cons_win);
+    wattron(_cons_win, COLOUR_OFFLINE);
+    wprintw(_cons_win, "|  _ \\ / ___) _ \\|  __) _  |  _ \\| |  _) | | |\n");
+    wattroff(_cons_win, COLOUR_OFFLINE);
+
+    _win_show_time(_cons_win);
+    wattron(_cons_win, COLOUR_OFFLINE);
+    wprintw(_cons_win, "| | | | |  | |_| | | ( ( | | | | | | |_| |_| |\n");
+    wattroff(_cons_win, COLOUR_OFFLINE);
+
+    _win_show_time(_cons_win);
+    wattron(_cons_win, COLOUR_OFFLINE);
+    wprintw(_cons_win, "| ||_/|_|   \\___/|_|  \\_||_|_| |_|_|\\___)__  |\n");
+    wattroff(_cons_win, COLOUR_OFFLINE);
+
+    _win_show_time(_cons_win);
+    wattron(_cons_win, COLOUR_OFFLINE);
+    wprintw(_cons_win, "|_|                                    (____/ \n");
+    wattroff(_cons_win, COLOUR_OFFLINE);
+
+    _win_show_time(_cons_win);
+    wprintw(_cons_win, "\n");
+    _win_show_time(_cons_win);
+    wprintw(_cons_win, "Version %s\n", PACKAGE_VERSION);
 }
 
 static int