diff options
author | Timo Sirainen <cras@irssi.org> | 2001-10-28 11:30:26 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-10-28 11:30:26 +0000 |
commit | 2ba339a26bc02bf4caa92e735ba79bd0dcc76a9f (patch) | |
tree | c5bdd6b1e1dfe58f3f7cc279cbdf9392578c699a /src/fe-text/statusbar.c | |
parent | 8567481fd058a9f66c76a55e02305c97153b7588 (diff) | |
download | irssi-2ba339a26bc02bf4caa92e735ba79bd0dcc76a9f.zip |
Added support for using terminfo/termcap instead of curses. By default,
configure chooses to use ncurses if found, of terminfo if only curses was
found. --with-terminfo parameter can be used to specify if you want it or
not.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1924 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/statusbar.c')
-rw-r--r-- | src/fe-text/statusbar.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c index ed9a8ea1..0ed75fed 100644 --- a/src/fe-text/statusbar.c +++ b/src/fe-text/statusbar.c @@ -235,7 +235,7 @@ static void statusbar_redraw_items(STATUSBAR_REC *bar) if (bar->parent_window != NULL) active_win = bar->parent_window->active; - statusbar_resize_items(bar, screen_width); + statusbar_resize_items(bar, term_width); xpos = 0; for (tmp = bar->items; tmp != NULL; tmp = tmp->next) { @@ -248,7 +248,7 @@ static void statusbar_redraw_items(STATUSBAR_REC *bar) } } - rxpos = screen_width; + rxpos = term_width; for (tmp = bar->items; tmp != NULL; tmp = tmp->next) { SBAR_ITEM_REC *rec = tmp->data; @@ -282,10 +282,10 @@ void statusbar_redraw(STATUSBAR_REC *bar) if (bar == NULL) { if (active_statusbar_group != NULL) { - screen_refresh_freeze(); + term_refresh_freeze(); g_slist_foreach(active_statusbar_group->bars, (GFunc) statusbar_redraw, NULL); - screen_refresh_thaw(); + term_refresh_thaw(); } return; } @@ -295,7 +295,7 @@ void statusbar_redraw(STATUSBAR_REC *bar) g_free(str); statusbar_redraw_items(bar); - screen_refresh(NULL); + term_refresh(NULL); } void statusbar_item_redraw(SBAR_ITEM_REC *item) @@ -317,7 +317,7 @@ void statusbar_item_redraw(SBAR_ITEM_REC *item) } else { /*FIXME:fprintf(stderr, "%s redrawing", item->config->name);*/ item->func(item, FALSE); - screen_refresh(NULL); + term_refresh(NULL); } active_win = old_active_win; @@ -360,7 +360,7 @@ static void statusbars_recalc_ypos(STATUSBAR_REC *bar) /* get the Y-position for the first statusbar */ if (bar->config->type == STATUSBAR_TYPE_ROOT) { ypos = bar->config->placement == STATUSBAR_TOP ? 0 : - screen_height - g_slist_length(bar_group); + term_height - g_slist_length(bar_group); } else { ypos = bar->config->placement == STATUSBAR_TOP ? bar->parent_window->first_line : |