Konsole::Vt102Emulation

Search for usage in LXR

#include <Vt102Emulation.h>

Inheritance diagram for Konsole::Vt102Emulation:

Public Slots

virtual void focusGained ()
 
virtual void focusLost ()
 
void sendKeyEvent (QKeyEvent *, bool fromPaste) override
 
void sendMouseEvent (int buttons, int column, int line, int eventType) override
 
void sendString (const char *, int length=-1) override
 
void sendText (const QString &text) override
 
- Public Slots inherited from Konsole::Emulation
void receiveData (const char *buffer, int len)
 
virtual void sendKeyEvent (QKeyEvent *, bool fromPaste)
 
virtual void sendMouseEvent (int buttons, int column, int line, int eventType)
 
virtual void sendString (const char *string, int length=-1)=0
 
virtual void sendText (const QString &text)=0
 
virtual void setImageSize (int lines, int columns)
 

Public Member Functions

 Vt102Emulation ()
 
void clearEntireScreen () override
 
char eraseChar () const override
 
void reset () override
 
- Public Member Functions inherited from Konsole::Emulation
 Emulation ()
 
void clearHistory ()
 
const QTextCodec * codec () const
 
ScreenWindowcreateWindow ()
 
const HistoryType & history () const
 
QSize imageSize () const
 
QString keyBindings () const
 
int lineCount () const
 
bool programBracketedPasteMode () const
 
bool programUsesMouse () const
 
void setCodec (const QTextCodec *)
 
void setHistory (const HistoryType &)
 
void setKeyBindings (const QString &name)
 
bool utf8 () const
 
virtual void writeToStream (TerminalCharacterDecoder *decoder)
 
virtual void writeToStream (TerminalCharacterDecoder *decoder, int startLine, int endLine)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 

Protected Member Functions

void receiveChar (QChar cc) override
 
void resetMode (int mode) override
 
void setMode (int mode) override
 
- Protected Member Functions inherited from Konsole::Emulation
void setCodec (EmulationCodec codec)
 
void setScreen (int index)
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Additional Inherited Members

- Public Types inherited from Konsole::Emulation
enum class  KeyboardCursorShape { BlockCursor = 0 , UnderlineCursor = 1 , IBeamCursor = 2 }
 
- Public Types inherited from QObject
typedef  QObjectList
 
- Properties inherited from QObject
 objectName
 
- Signals inherited from Konsole::Emulation
void changeTabTextColorRequest (int color)
 
void cursorChanged (KeyboardCursorShape cursorShape, bool blinkingCursorEnabled)
 
void flowControlKeyPressed (bool suspendKeyPressed)
 
void handleCommandFromKeyboard (KeyboardTranslator::Command command)
 
void imageResizeRequest (const QSize &sizz)
 
void imageSizeChanged (int lineCount, int columnCount)
 
void imageSizeInitialized ()
 
void outputChanged ()
 
void outputFromKeypressEvent (void)
 
void profileChangeCommandReceived (const QString &text)
 
void programBracketedPasteModeChanged (bool bracketedPasteMode)
 
void programUsesMouseChanged (bool usesMouse)
 
void sendData (const char *data, int len)
 
void stateSet (int state)
 
void titleChanged (int title, const QString &newTitle)
 
void useUtf8Request (bool)
 
void zmodemDetected ()
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Protected Types inherited from Konsole::Emulation
enum  EmulationCodec { LocaleCodec = 0 , Utf8Codec = 1 }
 
- Protected Slots inherited from Konsole::Emulation
void bufferedUpdate ()
 
- Protected Attributes inherited from Konsole::Emulation
std::unique_ptr< Screen_alternateScreen
 
const QTextCodec * _codec
 
Screen_currentScreen
 
std::unique_ptr< QTextDecoder > _decoder
 
const KeyboardTranslator_keyTranslator
 
std::unique_ptr< Screen_primaryScreen
 
std::vector< std::unique_ptr< ScreenWindow > > _windows
 

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 ( )

Constructs a new emulation.

Definition at line 57 of file Vt102Emulation.cpp.

◆ ~Vt102Emulation()

Vt102Emulation::~Vt102Emulation ( )
override

Definition at line 70 of file Vt102Emulation.cpp.

Member Function Documentation

◆ clearEntireScreen()

void Vt102Emulation::clearEntireScreen ( )
overridevirtual

Copies the current image into the history and clears the screen.

Implements Konsole::Emulation.

Definition at line 74 of file Vt102Emulation.cpp.

◆ eraseChar()

char Vt102Emulation::eraseChar ( ) const
overridevirtual

TODO Document me.

Reimplemented from Konsole::Emulation.

Definition at line 1947 of file Vt102Emulation.cpp.

◆ focusGained

void Vt102Emulation::focusGained ( void )
virtualslot

The focus gained event can be used by Vim (or other terminal applications) to recognize that the konsole window has gained focus again.

The escape sequence is also used by iTerm2. Vim needs the following plugin to be installed to convert the escape sequence into the FocusGained autocmd: https://github.com/sjl/vitality.vim

Definition at line 1557 of file Vt102Emulation.cpp.

◆ focusLost

void Vt102Emulation::focusLost ( void )
virtualslot

The focus lost event can be used by Vim (or other terminal applications) to recognize that the konsole window has lost focus.

The escape sequence is also used by iTerm2. Vim needs the following plugin to be installed to convert the escape sequence into the FocusLost autocmd: https://github.com/sjl/vitality.vim

Definition at line 1544 of file Vt102Emulation.cpp.

◆ receiveChar()

void Vt102Emulation::receiveChar ( QChar ch)
overrideprotectedvirtual

Processes an incoming character.

See receiveData() ch A unicode character code.

Reimplemented from Konsole::Emulation.

Definition at line 281 of file Vt102Emulation.cpp.

◆ reset()

void Vt102Emulation::reset ( )
overridevirtual

Resets the state of the terminal.

Implements Konsole::Emulation.

Definition at line 80 of file Vt102Emulation.cpp.

◆ resetMode()

void Vt102Emulation::resetMode ( int mode)
overrideprotectedvirtual

Implements Konsole::Emulation.

Definition at line 1899 of file Vt102Emulation.cpp.

◆ sendKeyEvent

void Vt102Emulation::sendKeyEvent ( QKeyEvent * origEvent,
bool fromPaste )
overrideslot

Definition at line 1605 of file Vt102Emulation.cpp.

◆ sendMouseEvent

void Vt102Emulation::sendMouseEvent ( int cb,
int cx,
int cy,
int eventType )
overrideslot

‘cx’,‘cy’ are 1-based. ‘cb’ indicates the button pressed or released (0-2) or scroll event (4-5).

eventType represents the kind of mouse action that occurred: 0 = Mouse button press 1 = Mouse drag 2 = Mouse button release

Definition at line 1492 of file Vt102Emulation.cpp.

◆ sendString

void Vt102Emulation::sendString ( const char * s,
int length = -1 )
overrideslot

Definition at line 1415 of file Vt102Emulation.cpp.

◆ sendText

void Vt102Emulation::sendText ( const QString & text)
overrideslot

Definition at line 1563 of file Vt102Emulation.cpp.

◆ setMode()

void Vt102Emulation::setMode ( int mode)
overrideprotectedvirtual

Implements Konsole::Emulation.

Definition at line 1866 of file Vt102Emulation.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:04:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.