diff options
Autocommit at 05.05.2022 @ 20:54
2 files changed, 4 insertions, 1 deletions
| -rw-r--r-- | src/ConsoleInterface/Menu.cpp | 1 | ||||
| -rw-r--r-- | src/ConsoleInterface/Toolbox.cpp | 4 |
diff --git a/src/ConsoleInterface/Menu.cpp b/src/ConsoleInterface/Menu.cpp index 8101901..ae51c40 100644 --- a/src/ConsoleInterface/Menu.cpp +++ b/src/ConsoleInterface/Menu.cpp @@ -50,6 +50,7 @@ void Menu::navigate() const { unsigned buffer = 1; // We immedeately read the value of buffer, so this is fine while (buffer != 0) { + clear(); printTitle(title); switch(msgType) { case Error: printError(msg.get_cstr()); msgType = NoPrint; break; diff --git a/src/ConsoleInterface/Toolbox.cpp b/src/ConsoleInterface/Toolbox.cpp index bb940a1..d42c16e 100644 --- a/src/ConsoleInterface/Toolbox.cpp +++ b/src/ConsoleInterface/Toolbox.cpp @@ -1,7 +1,9 @@ #include "Toolbox.hpp" void clear() { - std::cout << u8"\033[2J\033[1;1H"; + // Clears console on Linux + // Source: https://stackoverflow.com/a/52895729/12036073 + // std::cout << u8"\033[2J\033[1;1H"; } int orderedListIndex = 1; |
