Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Generic / ConsoleInterface
diff options
context:
space:
mode:
Commitd5ff44b2802b77e461a69018a20a75f41f7cbb1a (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 15:18:23 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 15:18:23 +0300
Filescda15edc3556d6213d87a5493d7e6d00467e564c /src/Generic/ConsoleInterface
FMI-OOP-P1_TicketSystem-d5ff44b2802b77e461a69018a20a75f41f7cbb1a.tar
FMI-OOP-P1_TicketSystem-d5ff44b2802b77e461a69018a20a75f41f7cbb1a.tar.gz
FMI-OOP-P1_TicketSystem-d5ff44b2802b77e461a69018a20a75f41f7cbb1a.zip
Parent9ca88a57353e3f36c430dda1bb714d205f06379d (diff)
Autocommit at 07.05.2022 @ 15:18
2 files changed, 5 insertions, 5 deletions
-rw-r--r--src/Generic/ConsoleInterface/Toolbox.cpp4
-rw-r--r--src/Generic/ConsoleInterface/Toolbox.hpp6
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);