diff options
Autocommit at 05.05.2022 @ 20:54
3 files changed, 7 insertions, 2 deletions
| -rw-r--r-- | src/ConsoleInterface/Menu.cpp | 1 | ||||
| -rw-r--r-- | src/ConsoleInterface/Toolbox.cpp | 4 | ||||
| -rw-r--r-- | src/EventSystem/Reservation.cpp | 4 |
diff --git a/src/ConsoleInterface/Menu.cpp b/src/ConsoleInterface/Menu.cpp index 8101901..ae51c40 100644 --- a/src/ConsoleInterface/Menu.cpp +++ b/src/ConsoleInterface/Menu.cpp @@ -50,6 +50,7 @@ void Menu::navigate() const { unsigned buffer = 1; // We immedeately read the value of buffer, so this is fine while (buffer != 0) { + clear(); printTitle(title); switch(msgType) { case Error: printError(msg.get_cstr()); msgType = NoPrint; break; diff --git a/src/ConsoleInterface/Toolbox.cpp b/src/ConsoleInterface/Toolbox.cpp index bb940a1..d42c16e 100644 --- a/src/ConsoleInterface/Toolbox.cpp +++ b/src/ConsoleInterface/Toolbox.cpp @@ -1,7 +1,9 @@ #include "Toolbox.hpp" void clear() { - std::cout << u8"\033[2J\033[1;1H"; + // Clears console on Linux + // Source: https://stackoverflow.com/a/52895729/12036073 + // std::cout << u8"\033[2J\033[1;1H"; } int orderedListIndex = 1; diff --git a/src/EventSystem/Reservation.cpp b/src/EventSystem/Reservation.cpp index 26278b2..1d46d27 100644 --- a/src/EventSystem/Reservation.cpp +++ b/src/EventSystem/Reservation.cpp @@ -11,8 +11,10 @@ Reservation::Reservation(const Ticket& ticket, const char* password, const char* strcpy(this->password, password); strcpy(this->note, note); } - +#include <iostream> bool Reservation::validPassword(const char* password) const { + std::cout << password << std::endl; + std::cout << this->password << std::endl; return !strcmp(this->password, password); } |
