Code

Added a search screen
[ncmpc.git] / src / screen_utils.h
1 #ifndef SCREEN_UTILS_H
2 #define SCREEN_UTILS_H
4 /* sound an audible and/or visible bell */
5 void screen_bell(void);
7 /* read a characher from the status window */
8 int screen_getch(WINDOW *w, char *prompt);
10 /* read a string from the status window */
11 char *screen_getstr(WINDOW *w, char *prompt);
12 char *screen_readln(WINDOW *w, char *prompt, char *value,
13                     GList **history, GCompletion *gcmp);
15 /* query user for a string and find it in a list window */
16 int screen_find(screen_t *screen,
17                 mpdclient_t *c,
18                 list_window_t *lw, 
19                 int rows,
20                 command_t findcmd,
21                 list_window_callback_fn_t callback_fn,
22                 void *callback_data);
25 void screen_display_completion_list(screen_t *screen, GList *list);
27 void set_xterm_title(char *format, ...);
29 #endif