about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-04-21 01:41:36 +0100
committerJames Booth <boothj5@gmail.com>2013-04-21 01:41:36 +0100
commit3011dc63ae573316ff5ac933f8511cc2a85fb15b (patch)
treebf0cf29d96bb6446555db973302929cdd0313ed4
parent0c912990c773ece4e8dd5b868b86868661009cb7 (diff)
downloadprofani-tty-3011dc63ae573316ff5ac933f8511cc2a85fb15b.tar.gz
Moved cons_show_word() to console module
-rw-r--r--src/ui/console.c11
-rw-r--r--src/ui/windows.c12
2 files changed, 11 insertions, 12 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 812fbac1..9600f79f 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -72,6 +72,17 @@ cons_show_time(void)
 }
 
 void
+cons_show_word(const char * const word)
+{
+    wprintw(console->win, "%s", word);
+
+    dirty = TRUE;
+    if (!win_current_is_console()) {
+        status_bar_new(0);
+    }
+}
+
+void
 cons_debug(const char * const msg, ...)
 {
     if (strcmp(PACKAGE_STATUS, "development") == 0) {
diff --git a/src/ui/windows.c b/src/ui/windows.c
index ce40eec9..be51a4e3 100644
--- a/src/ui/windows.c
+++ b/src/ui/windows.c
@@ -1146,18 +1146,6 @@ win_room_show_status(const char * const contact)
 }
 
 void
-cons_show_word(const char * const word)
-{
-    wprintw(console->win, "%s", word);
-
-    if (current_index == 0) {
-        dirty = TRUE;
-    } else {
-        status_bar_new(0);
-    }
-}
-
-void
 cons_bad_command(const char * const cmd)
 {
     window_show_time(console, '-');