ncmpc  0.29
Functions
screen_utils.h File Reference
#include "config.h"
#include "list_window.h"
#include "command.h"

Go to the source code of this file.

Functions

void screen_bell (void)
 
int screen_getch (const char *prompt)
 
bool screen_get_yesno (const char *prompt, bool def)
 
char * screen_read_password (const char *prompt)
 
char * screen_readln (const char *prompt, const char *value, GList **history, GCompletion *gcmp)
 
void screen_display_completion_list (GList *list)
 

Function Documentation

◆ screen_bell()

void screen_bell ( void  )

◆ screen_getch()

int screen_getch ( const char *  prompt)

◆ screen_get_yesno()

bool screen_get_yesno ( const char *  prompt,
bool  def 
)

display a prompt, wait for the user to press a key, and compare it with the default keys for "yes" and "no" (and their upper-case pendants).

Returns
true, if the user pressed the key for "yes"; false, if the user pressed the key for "no"; def otherwise

◆ screen_read_password()

char* screen_read_password ( const char *  prompt)

◆ screen_readln()

char* screen_readln ( const char *  prompt,
const char *  value,
GList **  history,
GCompletion *  gcmp 
)

◆ screen_display_completion_list()

void screen_display_completion_list ( GList *  list)