Moved incoming display message

This commit is contained in:
James Booth
2012-02-06 22:29:05 +00:00
parent 14f4478bea
commit bbb0fbed4f
6 changed files with 29 additions and 20 deletions

View File

@@ -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);
}