fixed bug where user's text would clear upon receiving message, even without pressing send
This commit is contained in:
@@ -158,10 +158,7 @@ void *output(void *arg) {
|
|||||||
wmove(chatlog, crow - 1, 0);
|
wmove(chatlog, crow - 1, 0);
|
||||||
wdeleteln(chatlog);
|
wdeleteln(chatlog);
|
||||||
mvwprintw(chatlog, crow - 1, 0, "%s: %s", s, msg);
|
mvwprintw(chatlog, crow - 1, 0, "%s: %s", s, msg);
|
||||||
wmove(stdscr, row - 1, 16);
|
|
||||||
wclrtoeol(stdscr);
|
|
||||||
wrefresh(chatlog);
|
wrefresh(chatlog);
|
||||||
refresh();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user