diff options
Diffstat (limited to 'src/windows.c')
-rw-r--r-- | src/windows.c | 44 |
1 files changed, 27 insertions, 17 deletions
diff --git a/src/windows.c b/src/windows.c index cc1f660e..3183222f 100644 --- a/src/windows.c +++ b/src/windows.c @@ -648,6 +648,7 @@ cons_navigation_help(void) cons_show("F2-F10 : Chat windows."); cons_show("UP, DOWN : Navigate input history."); cons_show("LEFT, RIGHT, HOME, END : Edit current input."); + cons_show("ESC : Clear current input."); cons_show("TAB : Autocomplete command/recipient/login"); cons_show("PAGE UP, PAGE DOWN : Page the main window."); cons_show(""); @@ -772,8 +773,7 @@ win_page_off(void) static void _create_windows(void) { - int rows, cols; - getmaxyx(stdscr, rows, cols); + int cols = getmaxx(stdscr); max_cols = cols; // create the console window in 0 @@ -788,6 +788,31 @@ _create_windows(void) scrollok(cons.win, TRUE); _wins[0] = cons; + + cons_about(); + + // create the chat windows + int i; + for (i = 1; i < NUM_WINS; i++) { + struct prof_win chat; + strcpy(chat.from, ""); + chat.win = newpad(PAD_SIZE, cols); + wbkgd(chat.win, COLOUR_TEXT); + chat.y_pos = 0; + chat.paged = 0; + chat.unread = 0; + chat.history_shown = 0; + scrollok(chat.win, TRUE); + _wins[i] = chat; + } +} + +void +cons_about(void) +{ + int rows, cols; + getmaxyx(stdscr, rows, cols); + _cons_win = _wins[0].win; if (prefs_get_showsplash()) { @@ -817,21 +842,6 @@ _create_windows(void) prefresh(_cons_win, 0, 0, 1, 0, rows-3, cols-1); dirty = TRUE; - - // create the chat windows - int i; - for (i = 1; i < NUM_WINS; i++) { - struct prof_win chat; - strcpy(chat.from, ""); - chat.win = newpad(PAD_SIZE, cols); - wbkgd(chat.win, COLOUR_TEXT); - chat.y_pos = 0; - chat.paged = 0; - chat.unread = 0; - chat.history_shown = 0; - scrollok(chat.win, TRUE); - _wins[i] = chat; - } } static void |