From 51e29b000ab58844060bdaea1a916a6ce637cec6 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 29 May 2022 08:33:59 +0300 Subject: Autocommit at 29.05.2022 @ 08:33 --- src/Generic/ConsoleInterface/Menu.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Generic/ConsoleInterface/Menu.cpp') 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++; -- cgit v1.3.1-23-gd82d