diff --git a/clients/jack_client.cpp b/clients/jack_client.cpp index 3c5487ee..6ccfc7d6 100644 --- a/clients/jack_client.cpp +++ b/clients/jack_client.cpp @@ -221,13 +221,14 @@ std::vector stringTokenize(const std::string& str) void cliThreadProc() { + const std::string whitespace = " \t"; while (!shouldClose) { std::cout << "\n> "; std::string command; std::getline(std::cin, command); - std::size_t start = command.length()? command.find_first_not_of(" "): 0; - std::size_t pos = command.find(" ", start); + std::size_t start = command.length()? command.find_first_not_of(whitespace): 0; + std::size_t pos = command.find_first_of(whitespace, start); std::string kw = command.substr(start, pos - start); std::string args = command.substr(pos + 1); std::vector tokens = stringTokenize(args);