terminal/src/Terminal.h

29 lines
507 B
C
Raw Normal View History

2019-12-12 11:59:07 +01:00
//
// Created by yukun on 29.11.19.
//
#ifndef TERMINAL_TERMINAL_H
#define TERMINAL_TERMINAL_H
#include "vkvm.hpp"
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
};
#endif //TERMINAL_TERMINAL_H