-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConsole.h
More file actions
36 lines (31 loc) · 2.05 KB
/
Console.h
File metadata and controls
36 lines (31 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <iostream>
#ifndef CONSOLE
#define CONSOLE
class Console{
public:
virtual ~Console() = default;
virtual void handleCommand() = 0; //virtual function for different handling between main and screen consoles
std::string getUserInput(){
std::string input;
std::cout << "Enter command: "; // Generic prompt
std::getline(std::cin, input);
return input;
}
void displayConsoleHeader() { //can be overidden if we want diff header on screen consoles
std::cout << " _______ _______ _______ _______ _______ _______ _______ __ ___ _______ _______ \n";
std::cout << "( ____ \\( ____ \\( ___ )( ____ )( ____ \\( ____ \\|\\ /| ( ____ \\/ \\ / ) ( ____ \\/ ___ )\n";
std::cout << "| ( \\/| ( \\/| ( ) || ( )|| ( \\/| ( \\/( \\ / ) | ( \\/\\/) ) / /) | | ( \\/\\/ ) |\n";
std::cout << "| | | (_____ | | | || (____)|| (__ | (_____ \\ (_) / | (_____ | | / (_) (_ _____ | | / )\n";
std::cout << "| | (_____ )| | | || _____)| __) (_____ ) \\ / (_____ ) | |(____ _)(_____)| | ____ _/ / \n";
std::cout << "| | ) || | | || ( | ( ) | ) ( ) | | | ) ( | | \\_ ) / _/ \n";
std::cout << "| (____/\\/\\____) || (___) || ) | (____/\\/\\____) | | | /\\____) |__) (_ | | | (___) |( (__/\\\n";
std::cout << "(_______/\\_______)(_______)|/ (_______/\\_______) \\_/ \\_______)\\____/ (_) (_______)\\_______/\n" << std::endl;
std::cout << "Welcome to CSOPESY Emulator\n\n";
std::cout << "Developers: \n"
<< " - Cabili, Johan Marlo\n"
<< " - Carandang, Matthew Ryan\n"
<< " - Veracruz, Sean Riley\n\n";
std::cout << "Last updated: June 19, 2025\n";
}
};
#endif