Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Generic / ConsoleInterface / Menu.cpp
diff options
context:
space:
mode:
1 files changed, 4 insertions, 3 deletions
-rw-r--r--src/Generic/ConsoleInterface/Menu.cpp7
diff --git a/src/Generic/ConsoleInterface/Menu.cpp b/src/Generic/ConsoleInterface/Menu.cpp
index c6e842a..90efc60 100644
--- a/src/Generic/ConsoleInterface/Menu.cpp
+++ b/src/Generic/ConsoleInterface/Menu.cpp
@@ -34,11 +34,12 @@ void Menu::navigate() const {
}
char buffer[MAX_LINE_WIDTH];
- unsigned startIndex = 0;
while (strncmp(buffer, "quit", 4) != 0) {
- startIndex = 0;
- inputLineBox("> ", buffer, MAX_LINE_WIDTH);
+ unsigned startIndex = 0;
+ inputLineBox(buffer, MAX_LINE_WIDTH, true);
+
+ std::cout << "\"" << buffer << "\"" << std::endl;
while (buffer[startIndex] == ' ') startIndex++;