terminal/src/Terminal.hpp

24 lines
455 B
C++
Raw Normal View History

2019-12-12 11:59:07 +01:00
//
2020-01-08 19:19:26 +01:00
#ifndef TERMINAL_TERMINAL_HPP
#define TERMINAL_TERMINAL_HPP
2019-12-12 11:59:07 +01:00
class Terminal {
public:
2019-12-18 13:26:59 +01:00
void init();
2019-12-12 11:59:07 +01:00
std::string getString();
void setString(char c);
void subString();
void shiftpressed();
void shiftup();
int getstatus();
2019-12-18 13:26:59 +01:00
void moveleft();
void moveright();
void moveup();
void movedown();
2019-12-12 11:59:07 +01:00
private:
std::string s="";
int status = 0;
2019-12-18 13:26:59 +01:00
char cursor = -127;
2019-12-12 11:59:07 +01:00
};
2020-01-08 19:19:26 +01:00
#endif //TERMINAL_TERMINAL_HPP