about summary refs log tree commit diff stats
path: root/src/windows.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-11-11 23:57:02 +0000
committerJames Booth <boothj5@gmail.com>2012-11-11 23:57:02 +0000
commit5ef8aa8c69699c953c7810533436b56248deaf1f (patch)
tree0e48d0f9d44eb36096d7fb64c7ac608a2eb3de5d /src/windows.c
parent2f1fa0d97a947ebeeb9d195a9e9bcd9f4d867e1b (diff)
downloadprofani-tty-5ef8aa8c69699c953c7810533436b56248deaf1f.tar.gz
Added /help list to list all commands
Diffstat (limited to 'src/windows.c')
-rw-r--r--src/windows.c25
1 files changed, 21 insertions, 4 deletions
diff --git a/src/windows.c b/src/windows.c
index 7b6d7267..77c7d1f7 100644
--- a/src/windows.c
+++ b/src/windows.c
@@ -937,12 +937,14 @@ void
 cons_help(void)
 {
     cons_show("");
-    cons_show("Choose an area you need help with:");
+    cons_show("Choose a help option:");
     cons_show("");
-    cons_show("/help basic      - Basic commands, for connecting, chatting etc.");
-    cons_show("/help status     - How to change your status.");
-    cons_show("/help settings   - Commands for configuring Profanity.");
+    cons_show("/help list       - List all commands.");
+    cons_show("/help basic      - Summary of basic usgae commands.");
+    cons_show("/help status     - Summary of online status change commands.");
+    cons_show("/help settings   - Summary of commands for changing Profanity settings.");
     cons_show("/help navigation - How to navigate around Profanity.");
+    cons_show("/help [command]  - Detailed help on a specific command.");
     cons_show("");
 
     if (_curr_prof_win == 0)
@@ -1101,6 +1103,12 @@ cons_bad_show(const char * const msg, ...)
 }
 
 void
+cons_show_time(void)
+{
+    _win_show_time(_cons_win);
+}
+
+void
 cons_show(const char * const msg, ...)
 {
     va_list arg;
@@ -1117,6 +1125,15 @@ cons_show(const char * const msg, ...)
 }
 
 void
+cons_show_word(const char * const word)
+{
+    wprintw(_cons_win, "%s", word);
+
+    if (_curr_prof_win == 0)
+        dirty = TRUE;
+}
+
+void
 cons_bad_command(const char * const cmd)
 {
     _win_show_time(_cons_win);