From da0fd22761a80e415a731bef92ab2149f4759c93 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 13 Feb 2012 00:28:26 +0000 Subject: Fixed bug with console when closing chat window --- windows.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'windows.c') diff --git a/windows.c b/windows.c index 55e3ca2a..b82b98b6 100644 --- a/windows.c +++ b/windows.c @@ -70,6 +70,7 @@ void win_close_win(void) status_bar_inactive(_curr_win); // go back to console window + _curr_win = 0; touchwin(_wins[0].win); wrefresh(_wins[0].win); @@ -201,19 +202,21 @@ void cons_help(void) wprintw(_wins[0].win, " [%s] Commands:\n", tstmp); wprintw(_wins[0].win, - " [%s] /help : This help.\n", tstmp); + " [%s] /help : This help.\n", tstmp); wprintw(_wins[0].win, - " [%s] /connect : Login to jabber.\n", tstmp); + " [%s] /connect user@host : Login to jabber.\n", tstmp); wprintw(_wins[0].win, - " [%s] /who : Get roster.\n", tstmp); + " [%s] /who : Get roster.\n", tstmp); wprintw(_wins[0].win, - " [%s] /close : Close a chat window.\n", tstmp); + " [%s] /close : Close a chat window.\n", tstmp); wprintw(_wins[0].win, - " [%s] /quit : Quits Profanity.\n", tstmp); + " [%s] /msg user@host : Send a message to user.\n", tstmp); + wprintw(_wins[0].win, + " [%s] /quit : Quit Profanity.\n", tstmp); wprintw(_wins[0].win, " [%s] Shortcuts:\n", tstmp); wprintw(_wins[0].win, - " [%s] F1 : Console window.\n", tstmp); + " [%s] F1 : Console window.\n", tstmp); wprintw(_wins[0].win, " [%s] F2-10 : Chat windows.\n", tstmp); -- cgit 1.4.1-2-gfad0