Added title bar refresh to main loop

This commit is contained in:
James Booth
2012-02-12 22:44:00 +00:00
parent 02f5df5b20
commit 632528a9e3
3 changed files with 10 additions and 1 deletions

View File

@@ -15,10 +15,16 @@ void create_title_bar(void)
title_bar_show(title);
}
void title_bar_refresh(void)
{
touchwin(title_bar);
wrefresh(title_bar);
inp_put_back();
}
void title_bar_show(char *title)
{
wclear(title_bar);
mvwprintw(title_bar, 0, 0, " %s", title);
wrefresh(title_bar);
}