diff options
Autocommit at 05.05.2022 @ 14:33
1 files changed, 22 insertions, 0 deletions
| -rw-r--r-- | src/ConsoleInterface/Toolbox.cpp | 22 |
diff --git a/src/ConsoleInterface/Toolbox.cpp b/src/ConsoleInterface/Toolbox.cpp index 1a3bb7b..81f4525 100644 --- a/src/ConsoleInterface/Toolbox.cpp +++ b/src/ConsoleInterface/Toolbox.cpp @@ -9,3 +9,25 @@ void resetOrderedList(int starter) { void _printOrderedListBeginning() { std::cout << orderedListIndex << ". "; } + +void inputBoxLabel(const char* label) { + std::cout << "+ " << label; +} + +void inputLineBox(const char* label, char* output, unsigned maxWidth) { + inputBoxLabel(label); + std::cin.getline(output, maxWidth); +} + +void printTitle(const char* title) { + std::cout << "## " << title << " ##" << std::endl; +} + +void printSuccess(const char* message) { + std::cout << ") " << message << std::endl; +} + +void printError(const char* message) { + std::cout << "! Err: " << message << std::endl; +} + |
