25 #ifndef VT102EMULATION_H
26 #define VT102EMULATION_H
33 #include <QtCore/QHash>
34 #include <QtCore/QTimer>
40 #define MODE_AppScreen (MODES_SCREEN+0)
41 #define MODE_AppCuKeys (MODES_SCREEN+1)
42 #define MODE_AppKeyPad (MODES_SCREEN+2)
43 #define MODE_Mouse1000 (MODES_SCREEN+3)
44 #define MODE_Mouse1001 (MODES_SCREEN+4)
45 #define MODE_Mouse1002 (MODES_SCREEN+5)
46 #define MODE_Mouse1003 (MODES_SCREEN+6)
47 #define MODE_Ansi (MODES_SCREEN+7)
48 #define MODE_BracketedPaste (MODES_SCREEN+8)
49 #define MODE_total (MODES_SCREEN+9)
104 virtual void setMode (
int mode);
156 void tau(
int code,
int p,
int q);
Base class for terminal emulation back-ends.
Provides an xterm compatible terminal emulation based on the DEC VT102 terminal.
QTimer * _titleUpdateTimer
void reportTerminalType()
void setAndUseCharset(int n, int cs)
virtual void setMode(int mode)
void scrollLock(const bool lock)
void clearScreenAndSetColumns(int columnCount)
void setMargins(int top, int bottom)
virtual void reset()
Resets the state of the terminal.
void setCharset(int n, int cs)
virtual char getErase() const
TODO Document me.
void reportSecondaryAttributes()
void restoreMode(int mode)
virtual void sendMouseEvent(int buttons, int column, int line, int eventType)
virtual void sendKeyEvent(QKeyEvent *)
virtual void receiveChar(int cc)
Processes an incoming character.
virtual void sendText(const QString &text)
void reportTerminalParms(int p)
unsigned short applyCharset(unsigned short c)
QHash< int, QString > _pendingTitleUpdates
virtual void clearEntireScreen()
Copies the current image into the history and clears the screen.
Vt102Emulation()
Constructs a new emulation.
void reportCursorPosition()
void resetCharset(int scrno)
virtual void resetMode(int mode)
void scan_buffer_report()
virtual void sendString(const char *, int length=-1)
void tau(int code, int p, int q)
bool mode[(MODES_SCREEN+9)]