24 lines
455 B
C++
24 lines
455 B
C++
//
|
|
#ifndef TERMINAL_TERMINAL_HPP
|
|
#define TERMINAL_TERMINAL_HPP
|
|
|
|
class Terminal {
|
|
public:
|
|
void init();
|
|
std::string getString();
|
|
void setString(char c);
|
|
void subString();
|
|
void shiftpressed();
|
|
void shiftup();
|
|
int getstatus();
|
|
void moveleft();
|
|
void moveright();
|
|
void moveup();
|
|
void movedown();
|
|
private:
|
|
std::string s="";
|
|
int status = 0;
|
|
char cursor = -127;
|
|
};
|
|
#endif //TERMINAL_TERMINAL_HPP
|