Make single character prompts more robust

This commit is contained in:
Andrzej Rybczak
2017-03-26 06:02:53 +02:00
parent 5d12c9d544
commit 035bc65bf9
4 changed files with 20 additions and 17 deletions

View File

@@ -69,8 +69,8 @@ void mpd();
/// called each time user types another character while inside Window::getString
bool mainHook(const char *);
/// prompt and return one of the strings specified in the vector
std::string promptReturnOneOf(std::vector<std::string> values);
/// prompt and return one of the characters specified in the vector
char promptReturnOneOf(const std::vector<char> &values);
struct ImmediatelyReturnOneOf
{