1 #ifndef SCREEN_UTILS_H
2 #define SCREEN_UTILS_H
4 #include "list_window.h"
5 #include "command.h"
7 #include <ncurses.h>
9 struct screen;
10 struct mpdclient;
12 /* sound an audible and/or visible bell */
13 void screen_bell(void);
15 /* read a characher from the status window */
16 int screen_getch(WINDOW *w, const char *prompt);
18 /* read a string from the status window */
19 char *screen_getstr(WINDOW *w, const char *prompt);
20 char *screen_readln(WINDOW *w, const char *prompt, const char *value,
21 GList **history, GCompletion *gcmp);
22 char *screen_readln_masked(WINDOW *w, const char *prompt);
23 char *screen_read_pasword(WINDOW *w, const char *prompt);
24 /* query user for a string and find it in a list window */
25 int screen_find(struct screen *screen,
26 struct list_window *lw,
27 int rows,
28 command_t findcmd,
29 list_window_callback_fn_t callback_fn,
30 void *callback_data);
32 gint screen_auth(struct mpdclient *c);
34 void screen_display_completion_list(struct screen *screen, GList *list);
36 void set_xterm_title(const char *format, ...);
38 #endif