Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Generic / ConsoleInterface
diff options
context:
space:
mode:
Commit32ba99f3203b1392f8a850f0ac4b142f83a74953 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-29 08:18:53 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-29 08:18:53 +0300
Files4bb71cbbad8f12f90d9c8a1ec95292b2f0ec4ce4 /src/Generic/ConsoleInterface
FMI-OOP-P2_Tables-32ba99f3203b1392f8a850f0ac4b142f83a74953.tar
FMI-OOP-P2_Tables-32ba99f3203b1392f8a850f0ac4b142f83a74953.tar.gz
FMI-OOP-P2_Tables-32ba99f3203b1392f8a850f0ac4b142f83a74953.zip
Parentda44817c4faa2d15c4e08637d51b52e78e99e54c (diff)
Autocommit at 29.05.2022 @ 08:18
3 files changed, 0 insertions, 15 deletions
-rw-r--r--src/Generic/ConsoleInterface/Menu.cpp1
-rw-r--r--src/Generic/ConsoleInterface/Toolbox.cpp11
-rw-r--r--src/Generic/ConsoleInterface/Toolbox.hpp3
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);