Code

due to bensonk's demand i added a splash 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);
14 char *screen_readln_masked(WINDOW *w, char *prompt);
15 char *screen_read_pasword(WINDOW *w, char *prompt); 
16 /* query user for a string and find it in a list window */
17 int screen_find(screen_t *screen,
18                 mpdclient_t *c,
19                 list_window_t *lw, 
20                 int rows,
21                 command_t findcmd,
22                 list_window_callback_fn_t callback_fn,
23                 void *callback_data);
25 gint screen_auth(mpdclient_t *c);
27 void screen_display_completion_list(screen_t *screen, GList *list);
29 void set_xterm_title(char *format, ...);
31 #endif