about summary refs log tree commit diff stats
path: root/windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'windows.c')
-rw-r--r--windows.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/windows.c b/windows.c
index a34c2ee0..9b534d88 100644
--- a/windows.c
+++ b/windows.c
@@ -80,3 +80,12 @@ static void create_main_window(void)
     main_win = newwin(rows-3, cols, 1, 0);
     scrollok(main_win, TRUE);
 }
+
+void show_incomming_msg(char *from, char *message) 
+{
+    char line[100];
+    sprintf(line, "%s: %s\n", from, message);
+
+    wprintw(main_win, line);
+    wrefresh(main_win);
+}