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 mpdclient;
11 /* sound an audible and/or visible bell */
12 void screen_bell(void);
14 /* read a characher from the status window */
15 int screen_getch(WINDOW *w, const char *prompt);
17 /* read a string from the status window */
18 char *screen_getstr(WINDOW *w, const char *prompt);
19 char *screen_readln(WINDOW *w, const char *prompt, const char *value,
20 GList **history, GCompletion *gcmp);
21 char *screen_readln_masked(WINDOW *w, const char *prompt);
22 char *screen_read_pasword(WINDOW *w, const char *prompt);
23 /* query user for a string and find it in a list window */
24 int screen_find(struct list_window *lw,
25 int rows,
26 command_t findcmd,
27 list_window_callback_fn_t callback_fn,
28 void *callback_data);
30 gint screen_auth(struct mpdclient *c);
32 void screen_display_completion_list(GList *list);
34 void set_xterm_title(const char *format, ...);
36 #endif