Skip to content
Snippets Groups Projects
Commit 11566df9 authored by Adam Wardynski's avatar Adam Wardynski
Browse files

Add prompt for non-libedit read-from-std loop.

parent 332151bd
Branches
No related merge requests found
...@@ -26,6 +26,7 @@ namespace { ...@@ -26,6 +26,7 @@ namespace {
void std_read_loop(boost::function<bool (const std::string&)>& line_cb) void std_read_loop(boost::function<bool (const std::string&)>& line_cb)
{ {
while (std::cin.good()) { while (std::cin.good()) {
std::cout << _prompt << std::flush;
std::string s; std::string s;
getline(std::cin, s); getline(std::cin, s);
if (line_cb(s)) { if (line_cb(s)) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment