Konsole
Go to the documentation of this file.
23 #ifndef VT102EMULATION_H
24 #define VT102EMULATION_H
27 #include <QtCore/QHash>
36 #define MODE_AppScreen (MODES_SCREEN+0) // Mode #1
37 #define MODE_AppCuKeys (MODES_SCREEN+1) // Application cursor keys (DECCKM)
38 #define MODE_AppKeyPad (MODES_SCREEN+2) //
39 #define MODE_Mouse1000 (MODES_SCREEN+3) // Send mouse X,Y position on press and release
40 #define MODE_Mouse1001 (MODES_SCREEN+4) // Use Hilight mouse tracking
41 #define MODE_Mouse1002 (MODES_SCREEN+5) // Use cell motion mouse tracking
42 #define MODE_Mouse1003 (MODES_SCREEN+6) // Use all motion mouse tracking
43 #define MODE_Mouse1005 (MODES_SCREEN+7) // Xterm-style extended coordinates
44 #define MODE_Mouse1006 (MODES_SCREEN+8) // 2nd Xterm-style extended coordinates
45 #define MODE_Mouse1015 (MODES_SCREEN+9) // Urxvt-style extended coordinates
46 #define MODE_Ansi (MODES_SCREEN+10) // Use US Ascii for character sets G0-G3 (DECANM)
47 #define MODE_132Columns (MODES_SCREEN+11) // 80 <-> 132 column mode switch (DECCOLM)
48 #define MODE_Allow132Columns (MODES_SCREEN+12) // Allow DECCOLM mode
49 #define MODE_BracketedPaste (MODES_SCREEN+13) // Xterm-style bracketed paste mode
50 #define MODE_total (MODES_SCREEN+14)
92 virtual void sendString(
const char*,
int length = -1);
95 virtual void sendMouseEvent(
int buttons,
int column,
int line,
int eventType);
109 unsigned short applyCharset(
unsigned short c);
110 void setCharset(
int n,
int cs);
111 void useCharset(
int n);
112 void setAndUseCharset(
int n,
int cs);
114 void restoreCursor();
115 void resetCharset(
int scrno);
117 void setMargins(
int top,
int bottom);
119 void setDefaultMargins();
122 bool getMode(
int mode);
124 void saveMode(
int mode);
126 void restoreMode(
int mode);
131 void resetTokenizer();
132 #define MAX_TOKEN_LENGTH 256 // Max length of tokens (e.g. window title)
133 void addToCurrentToken(
int cc);
137 void addDigit(
int dig);
141 void initTokenizer();
148 void reportDecodingError();
150 void processToken(
int code,
int p,
int q);
151 void processWindowAttributeChange();
153 void reportTerminalType();
154 void reportSecondaryAttributes();
156 void reportAnswerBack();
157 void reportCursorPosition();
158 void reportTerminalParms(
int p);
162 void clearScreenAndSetColumns(
int columnCount);
164 CharCodes _charset[2];
171 memset(&mode,
false,
MODE_total *
sizeof(
bool));
177 TerminalState _currentModes;
178 TerminalState _savedModes;
186 QTimer* _titleUpdateTimer;
190 #endif // VT102EMULATION_H
unsigned short vt100_graphics[32]
virtual void reset()
Resets the state of the terminal.
virtual void sendMouseEvent(int buttons, int column, int line, int eventType)
virtual void receiveChar(int cc)
Processes an incoming character.
Vt102Emulation()
Constructs a new emulation.
virtual char eraseChar() const
Returns the special character used for erasing character.
virtual void sendText(const QString &text)
virtual void resetMode(int mode)
virtual void clearEntireScreen()
Copies the current image into the history and clears the screen.
virtual void sendString(const char *, int length=-1)
Base class for terminal emulation back-ends.
Provides an xterm compatible terminal emulation based on the DEC VT102 terminal.
virtual void setMode(int mode)
virtual void sendKeyEvent(QKeyEvent *)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.