From 2137ffa25a21b5de85c40578940f76b7dbd6307f Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 10 Feb 2012 00:03:49 +0000 Subject: [PATCH] Fixed wrong message in title bar for cons window --- title_bar.c | 5 ++--- windows.c | 6 +++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/title_bar.c b/title_bar.c index 5cd18672..130afa74 100644 --- a/title_bar.c +++ b/title_bar.c @@ -12,14 +12,13 @@ void create_title_bar(void) title_bar = newwin(1, cols, 0, 0); wbkgd(title_bar, COLOR_PAIR(3)); - mvwprintw(title_bar, 0, 0, title); - wrefresh(title_bar); + title_bar_show(title); } void title_bar_show(char *title) { wclear(title_bar); - mvwprintw(title_bar, 0, 0, title); + mvwprintw(title_bar, 0, 0, " %s", title); wrefresh(title_bar); } diff --git a/windows.c b/windows.c index ee86c2db..161319a4 100644 --- a/windows.c +++ b/windows.c @@ -45,7 +45,11 @@ void switch_to(int i) wrefresh(wins[i].win); curr_win = i; - title_bar_show(wins[i].from); + if (i == 0) { + title_bar_show("Console, type /help for help information"); + } else { + title_bar_show(wins[i].from); + } } void close_win(void)