diff options
Diffstat (limited to 'src/screen_utils.c')
-rw-r--r-- | src/screen_utils.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/screen_utils.c b/src/screen_utils.c index 398fdd9fe..16359c6ea 100644 --- a/src/screen_utils.c +++ b/src/screen_utils.c @@ -159,4 +159,26 @@ screen_find(screen_t *screen, return 0; } +void +screen_display_completion_list(screen_t *screen, GList *list) +{ + WINDOW *w = screen->main_window.w; + gint y=0; + colors_use(w, COLOR_STATUS_ALERT); + while( y<screen->main_window.rows ) + { + wmove(w, y++, 0); + wclrtoeol(w); + if( list ) + { + gchar *tmp = g_strdup(list->data); + waddstr(w, basename(tmp)); + g_free(tmp); + list = list->next; + } + } + wrefresh(w); + doupdate(); + colors_use(w, COLOR_LIST); +} |