diff options
Autocommit at 07.05.2022 @ 15:18
2 files changed, 5 insertions, 5 deletions
| -rw-r--r-- | src/Generic/ConsoleInterface/Toolbox.cpp | 4 | ||||
| -rw-r--r-- | src/Generic/ConsoleInterface/Toolbox.hpp | 6 |
diff --git a/src/Generic/ConsoleInterface/Toolbox.cpp b/src/Generic/ConsoleInterface/Toolbox.cpp index 49d4360..78ca240 100644 --- a/src/Generic/ConsoleInterface/Toolbox.cpp +++ b/src/Generic/ConsoleInterface/Toolbox.cpp @@ -72,9 +72,9 @@ void inputLineSubBox(const char* label, char* output, unsigned maxWidth, bool ig __inputLineBoxGetInput(output, maxWidth, ignore); } -void pressEnterToContinue() { +void pressEnterToContinue(bool ignore) { char tmp; - inputLineBox("[Press enter to continue]", &tmp, 1); + inputLineBox("[Press enter to continue]", &tmp, 1, ignore); } /* Ordered list */ diff --git a/src/Generic/ConsoleInterface/Toolbox.hpp b/src/Generic/ConsoleInterface/Toolbox.hpp index 98a2002..a1a310b 100644 --- a/src/Generic/ConsoleInterface/Toolbox.hpp +++ b/src/Generic/ConsoleInterface/Toolbox.hpp @@ -16,9 +16,9 @@ void warningSubBox(const char* message); void errorBox(const char* message); void errorSubBox(const char* message); -void inputLineBox(const char* label, char* output, unsigned maxWidth); -void inputLineSubBox(const char* label, char* output, unsigned maxWidth); -void pressEnterToContinue(); +void inputLineBox(const char* label, char* output, unsigned maxWidth, bool ignore = true); +void inputLineSubBox(const char* label, char* output, unsigned maxWidth, bool ignore = true); +void pressEnterToContinue(bool ignore = true); void resetOrderedList(int starter = 1); |
