added "j" command
This commit is contained in:
@@ -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? ";
|
||||
|
||||
Reference in New Issue
Block a user