• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Konsole

Konsole::Vt102Emulation

Konsole::Vt102Emulation Class Reference

#include <Vt102Emulation.h>

Inheritance diagram for Konsole::Vt102Emulation:

Inheritance graph
[legend]

List of all members.


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 77 of file Vt102Emulation.h.


Public Slots

virtual void sendString (const char *, int length=-1)
virtual void sendText (const QString &text)
virtual void sendKeyEvent (QKeyEvent *)
virtual void sendMouseEvent (int buttons, int column, int line, int eventType)

Public Member Functions

 Vt102Emulation ()
 ~Vt102Emulation ()
virtual void clearEntireScreen ()
virtual void reset ()
virtual char getErase () const

Protected Member Functions

virtual void setMode (int mode)
virtual void resetMode (int mode)
virtual void receiveChar (int cc)

Constructor & Destructor Documentation

Vt102Emulation::Vt102Emulation (  ) 

Constructs a new emulation.

Definition at line 86 of file Vt102Emulation.cpp.

Vt102Emulation::~Vt102Emulation (  ) 

Definition at line 98 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 102 of file Vt102Emulation.cpp.

void Vt102Emulation::reset (  )  [virtual]

Resets the state of the terminal.

Implements Konsole::Emulation.

Definition at line 109 of file Vt102Emulation.cpp.

char Vt102Emulation::getErase (  )  const [virtual]

TODO Document me.

Reimplemented from Konsole::Emulation.

Definition at line 1208 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 813 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 928 of file Vt102Emulation.cpp.

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 940 of file Vt102Emulation.cpp.

void Vt102Emulation::sendMouseEvent ( int  cb,
int  cx,
int  cy,
int  eventType 
) [virtual, slot]

Mouse clicks are possibly reported to the client application if it has issued interest in them. They are normally consumed by the widget for copy and paste, but may be propagated from the widget when gui->setMouseMarks is set via setMode(MODE_Mouse1000).

`x',`y' are 1-based. `ev' (event) 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 908 of file Vt102Emulation.cpp.

void Vt102Emulation::setMode ( int  mode  )  [protected, virtual]

Implements Konsole::Emulation.

Definition at line 1144 of file Vt102Emulation.cpp.

void Vt102Emulation::resetMode ( int  mode  )  [protected, virtual]

Implements Konsole::Emulation.

Definition at line 1167 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 293 of file Vt102Emulation.cpp.


The documentation for this class was generated from the following files:
  • Vt102Emulation.h
  • Vt102Emulation.cpp

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal