Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
2 files changed, 7 insertions, 3 deletions
-rw-r--r--src/Generic/ConsoleInterface/Toolbox.cpp5
-rw-r--r--src/UserInterface/VenueConsoleUI.cpp5
diff --git a/src/Generic/ConsoleInterface/Toolbox.cpp b/src/Generic/ConsoleInterface/Toolbox.cpp
index 7fd64ab..ddfdd94 100644
--- a/src/Generic/ConsoleInterface/Toolbox.cpp
+++ b/src/Generic/ConsoleInterface/Toolbox.cpp
@@ -71,6 +71,11 @@ void inputLineSubBox(const char* label, char* output, unsigned maxWidth) {
__inputLineBoxGetInput(output, maxWidth);
}
+void pressEnterToContinue() {
+ char tmp;
+ inputLineBox("[Press enter to continue]", &tmp, 1);
+}
+
/* Ordered list */
int orderedListIndex = 1;
diff --git a/src/UserInterface/VenueConsoleUI.cpp b/src/UserInterface/VenueConsoleUI.cpp
index 8c3fdcf..63816c6 100644
--- a/src/UserInterface/VenueConsoleUI.cpp
+++ b/src/UserInterface/VenueConsoleUI.cpp
@@ -53,9 +53,7 @@ void command_freeSeats() {
}
table(1, seatsPerRow, seating.get_cstr());
-
- char tmp;
- inputLineBox("[Press enter to continue]", &tmp, 1);
+ pressEnterToContinue();
}
void command_reserveTicket() {
@@ -106,6 +104,7 @@ void command_buyTicket() {
if (note.get_length() > 0) {
successSubBox("The reservation had a note attached. It reads:");
successSubBox(note.get_cstr());
+ pressEnterToContinue();
}
}
else if (s == W_TicketHadNotBeenReserved) {