mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
22 lines
453 B
C++
22 lines
453 B
C++
#ifndef _LinuxFrameBuffer_VirtualTerminal_h_
|
|
#define _LinuxFrameBuffer_VirtualTerminal_h_
|
|
|
|
#include <termios.h>
|
|
#include <CtrlLib/CtrlLib.h>
|
|
|
|
namespace Upp{
|
|
|
|
struct VirtualTerminal{
|
|
private:
|
|
int handle = -1;
|
|
int previous_mode = 0;
|
|
int previous_keyboard_mode = 0;
|
|
struct termios terminal_attributes;
|
|
public:
|
|
bool Open(const char * device);
|
|
void Close();
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|