diff options
Autocommit at 29.05.2022 @ 08:18
3 files changed, 0 insertions, 15 deletions
| -rw-r--r-- | src/Generic/ConsoleInterface/Menu.cpp | 1 | ||||
| -rw-r--r-- | src/Generic/ConsoleInterface/Toolbox.cpp | 11 | ||||
| -rw-r--r-- | src/Generic/ConsoleInterface/Toolbox.hpp | 3 |
diff --git a/src/Generic/ConsoleInterface/Menu.cpp b/src/Generic/ConsoleInterface/Menu.cpp index 32f5104..cde9aae 100644 --- a/src/Generic/ConsoleInterface/Menu.cpp +++ b/src/Generic/ConsoleInterface/Menu.cpp @@ -36,7 +36,6 @@ void Menu::navigate() const { unsigned startIndex = 0; while (strncmp(buffer, "quit", 4) != 0) { - clear(); startIndex = 0; inputLineBox("> ", buffer, MAX_LINE_WIDTH); diff --git a/src/Generic/ConsoleInterface/Toolbox.cpp b/src/Generic/ConsoleInterface/Toolbox.cpp index 8a4470d..cb17b47 100644 --- a/src/Generic/ConsoleInterface/Toolbox.cpp +++ b/src/Generic/ConsoleInterface/Toolbox.cpp @@ -1,16 +1,5 @@ #include "Toolbox.hpp" -/*! - * Erases display and moves cursor to top left corner via ANSI escape sequences: \c ESC[2J \c ESC[1;1H - * - * \warning Not all terminals support any or all ANSI escape sequences - * - * \note Source: https://stackoverflow.com/a/52895729/12036073 - */ -void clear() { - std::cout << u8"\033[2J\033[1;1H"; -} - /* Input line boxes */ void __inputLineBoxGetInput(char* output, unsigned maxWidth, bool ignore) { diff --git a/src/Generic/ConsoleInterface/Toolbox.hpp b/src/Generic/ConsoleInterface/Toolbox.hpp index cc6e5c1..99489f5 100644 --- a/src/Generic/ConsoleInterface/Toolbox.hpp +++ b/src/Generic/ConsoleInterface/Toolbox.hpp @@ -15,9 +15,6 @@ #define MAX_LINE_WIDTH 1024 -//! Clears the console screen -void clear(); - //! Prints label, gets a whole line of input and stores it to output void inputLineBox(const char* label, char* output, unsigned maxWidth, bool ignore = true); |
