ncmpc  0.31
Functions
wreadln.hxx File Reference
#include "config.h"
#include "History.hxx"
#include "ncmpc_curses.h"
#include <string>

Go to the source code of this file.

Functions

std::string wreadln (WINDOW *w, const char *initial_value, unsigned x1, History *history, Completion *completion)
 
std::string wreadln_masked (WINDOW *w, const char *initial_value, unsigned x1)
 

Function Documentation

◆ wreadln()

std::string wreadln ( WINDOW *  w,
const char *  initial_value,
unsigned  x1,
History history,
Completion completion 
)

This function calls curs_set(1), to enable cursor. It will not restore this settings when exiting.

Parameters
thecurses window to use
initial_valueinitial value or nullptr for a empty line; (char *) -1 = get value from history
x1the maximum x position or 0
historya pointer to a history list or nullptr
aCompletion instance or nullptr

◆ wreadln_masked()

std::string wreadln_masked ( WINDOW *  w,
const char *  initial_value,
unsigned  x1 
)