added "j" command

This commit is contained in:
black
2025-07-09 12:31:31 +02:00
parent cf45a6e634
commit 45e9218ebd
2 changed files with 19 additions and 9 deletions

View File

@@ -111,13 +111,15 @@ std::streampos Manager::getNextStreamLineOffset() {
std::string Manager::gotoNextStreamLine() {
std::string line;
getline(m_programFile, line);
do {
getline(m_programFile, line);
} while (line.empty());
return line;
}
bool Manager::handleUserInput() {
constexpr const char *COLOR_GREEN = "\033[32m";
constexpr const char *COLOR_RESET = "\033[0m";
constexpr auto COLOR_GREEN = "\033[32m";
constexpr auto COLOR_RESET = "\033[0m";
std::cout << "\nOptionen: ("
<< COLOR_GREEN << "s" << COLOR_RESET << ") Programm durchlaufen lassen, ("
@@ -170,7 +172,7 @@ void Manager::handleExitInput() {
input = std::tolower(input);
if (input == 'e') {
std::cout << "Programm wird beendet.\n";
std::cout << "Programm wird beendet. :pepeExit:\n";
exit(0); // oder andere Beendigung
} else if (input == 'm') {
std::cout << "Wie viele Speicherzellen sollen gedumpt werden? ";