ncmpc  0.30
Functions
screen_utils.hxx File Reference
#include "config.h"
#include "command.hxx"
#include "History.hxx"
#include "Completion.hxx"

Go to the source code of this file.

Functions

void screen_bell ()
 
int screen_getch (const char *prompt)
 
bool screen_get_yesno (const char *prompt, bool def)
 
std::string screen_read_password (const char *prompt)
 
std::string screen_readln (const char *prompt, const char *value, History *history, Completion *completion)
 
void screen_display_completion_list (Completion::Range range)
 

Function Documentation

◆ screen_bell()

void screen_bell ( )

◆ 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()

std::string screen_read_password ( const char *  prompt)

◆ screen_readln()

std::string screen_readln ( const char *  prompt,
const char *  value,
History history,
Completion completion 
)

◆ screen_display_completion_list()

void screen_display_completion_list ( Completion::Range  range)