init_windows()
{
top = newwin(LIST_TOP - 1, COLS, 0, 0);
-
bottom = newwin(LINES - LIST_BOTTOM, COLS, LIST_BOTTOM, 0);
}
static void
win_changed(int i)
{
- if( can_resize )
+ if(can_resize)
resize_abook();
else
should_resize = TRUE;
return 1;
}
-#ifdef SIGWINCH
- signal(SIGWINCH, win_changed);
-#endif
-
init_list();
init_windows();
ui_initialized = TRUE;
+#ifdef SIGWINCH
+ signal(SIGWINCH, win_changed);
+#endif
+
return 0;
}
refresh_screen()
{
#ifdef SIGWINCH
- if( should_resize ) {
+ if(should_resize) {
resize_abook();
return;
}
return ret;
}
-
void
refresh_statusline()
{
wrefresh(bottom);
}
-
char *
ask_filename(char *prompt)
{
for(i = 0; tbl[i] != NULL; i++) {
waddstr(helpw, tbl[i]);
- if( ( !( (i+1) % (LINES-8) ) ) ||
- (tbl[i+1] == NULL) ) {
+ if( (!((i + 1) % (LINES - 8))) ||
+ (tbl[i + 1] == NULL) ) {
refresh();
wrefresh(helpw);
refresh_statusline();
}
}
-
void
ui_remove_items()
{