Konsole
Konsole::Vt102Emulation Class Reference
Provides an xterm compatible terminal emulation based on the DEC VT102 terminal. More...
#include <Vt102Emulation.h>

Public Slots | |
virtual void | sendKeyEvent (QKeyEvent *) |
virtual void | sendMouseEvent (int buttons, int column, int line, int eventType) |
virtual void | sendString (const char *, int length=-1) |
virtual void | sendText (const QString &text) |
Public Member Functions | |
virtual void | clearEntireScreen () |
virtual char | eraseChar () const |
virtual void | reset () |
Vt102Emulation () | |
~Vt102Emulation () | |
Protected Member Functions | |
virtual void | receiveChar (int cc) |
virtual void | resetMode (int mode) |
virtual void | setMode (int mode) |
Detailed Description
Provides an xterm compatible terminal emulation based on the DEC VT102 terminal.A full description of this terminal can be found at http://vt100.net/docs/vt102-ug/
In addition, various additional xterm escape sequences are supported to provide features such as mouse input handling. See http://rtfm.etla.org/xterm/ctlseq.html for a description of xterm's escape sequences.
Definition at line 74 of file Vt102Emulation.h.
Constructor & Destructor Documentation
Vt102Emulation::Vt102Emulation | ( | ) |
Vt102Emulation::~Vt102Emulation | ( | ) |
Definition at line 75 of file Vt102Emulation.cpp.
Member Function Documentation
void Vt102Emulation::clearEntireScreen | ( | ) | [virtual] |
Copies the current image into the history and clears the screen.
Implements Konsole::Emulation.
Definition at line 78 of file Vt102Emulation.cpp.
char Vt102Emulation::eraseChar | ( | ) | const [virtual] |
TODO Document me.
Reimplemented from Konsole::Emulation.
Definition at line 1188 of file Vt102Emulation.cpp.
void Vt102Emulation::receiveChar | ( | int | ch | ) | [protected, virtual] |
Processes an incoming character.
See receiveData() ch
A unicode character code.
Reimplemented from Konsole::Emulation.
Definition at line 280 of file Vt102Emulation.cpp.
void Vt102Emulation::reset | ( | ) | [virtual] |
Resets the state of the terminal.
Implements Konsole::Emulation.
Definition at line 84 of file Vt102Emulation.cpp.
void Vt102Emulation::resetMode | ( | int | mode | ) | [protected, virtual] |
void Vt102Emulation::sendKeyEvent | ( | QKeyEvent * | ev | ) | [virtual, slot] |
Interprets a key press event and emits the sendData() signal with the resulting character stream.
Reimplemented from Konsole::Emulation.
Definition at line 898 of file Vt102Emulation.cpp.
void Vt102Emulation::sendMouseEvent | ( | int | cb, | |
int | cx, | |||
int | cy, | |||
int | eventType | |||
) | [virtual, slot] |
`cx',`cy' are 1-based. `eventType' indicates the button pressed (0-2) or a general mouse release (3).
eventType represents the kind of mouse action that occurred: 0 = Mouse button press or release 1 = Mouse drag
Reimplemented from Konsole::Emulation.
Definition at line 868 of file Vt102Emulation.cpp.
void Vt102Emulation::sendString | ( | const char * | string, | |
int | length = -1 | |||
) | [virtual, slot] |
Sends a string of characters to the foreground terminal process.
- Parameters:
-
string The characters to send. length Length of string
or if set to a negative value,string
will be treated as a null-terminated string and its length will be determined automatically.
Implements Konsole::Emulation.
Definition at line 799 of file Vt102Emulation.cpp.
void Vt102Emulation::sendText | ( | const QString & | text | ) | [virtual, slot] |
Interprets a sequence of characters and sends the result to the terminal.
This is equivalent to calling sendKeyEvent() for each character in text
in succession.
Implements Konsole::Emulation.
Definition at line 887 of file Vt102Emulation.cpp.
void Vt102Emulation::setMode | ( | int | mode | ) | [protected, virtual] |
The documentation for this class was generated from the following files: