-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathLinuxconsole.cpp
71 lines (53 loc) · 879 Bytes
/
Linuxconsole.cpp
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#pragma once
#include "Console.h"
#include <iostream>
#include <fstream>
#include <string>
#include <thread>
#include <chrono>
#include <memory>
#include "Manager.h"
LinuxShell::LinuxShell()
{
State = std::make_unique<SplashState>();
}
void LinuxShell::Display(bool fast)
{
std::cout << "Linux";
}
void Console::WriteOut(std::string in)
{
std::cout << in;
}
void Console::Input() //this part could be improved!
{
WriteOut(this->State->DisplayText());
Console::WriteOut(" Input your command: ");
std::string input;
std::getline(std::cin, input);
Manager::instance().FireCommand(input);
}
void Console::WriteCurrentEvent(std::string in)
{
}
void Console::ProgressStar()
{
}
Console::Console()
{
}
Console::~Console()
{
}
SplashState::SplashState()
{
}
SplashState::~SplashState()
{
}
IConsoleState::IConsoleState()
{
}
IConsoleState::~IConsoleState()
{
}