Konsole
Emulation.cpp
Go to the documentation of this file.
250 // a) It decoded incoming characters one-by-one, which is slow in the current version of Qt (4.2 tech preview)
251 // b) It messed up decoding of non-ASCII characters, with the result that (for example) chinese characters
254 //There is something about stopping the _decoder if "we get a control code halfway a multi-byte sequence" (see below)
255 //which hasn't been ported into the newer function (above). Hopefully someone who understands this better
void setHistory(const HistoryType &)
Sets the history store used by this emulation.
Definition: Emulation.cpp:137
void writeLinesToStream(TerminalCharacterDecoder *decoder, int fromLine, int toLine) const
Copies part of the output to a stream.
Definition: Screen.cpp:1290
void imageSizeInitialized()
Emitted when the setImageSize() is called on this emulation for the first time.
void programBracketedPasteModeChanged(bool bracketedPasteMode)
virtual void setImageSize(int lines, int columns)
Change the size of the emulation's image.
Definition: Emulation.cpp:338
QString selectedText(bool preserveLineBreaks, bool trimTrailingSpaces=false) const
Convenience method.
Definition: Screen.cpp:1110
void zmodemDetected()
Emitted when the special sequence indicating the request for data transmission through ZModem protoco...
void sendData(const char *data, int len)
Emitted when a buffer of data is ready to send to the standard input of the terminal.
QSize imageSize() const
Returns the size of the screen image which the emulation produces.
Definition: Emulation.cpp:378
const HistoryType & getScroll() const
Returns the type of storage used to keep lines in the history.
Definition: Screen.cpp:1371
Definition: Emulation.h:438
virtual char eraseChar() const
Returns the special character used for erasing character.
Definition: Emulation.cpp:333
void primaryScreenInUse(bool use)
Emitted when the active screen is switched, to indicate whether the primary screen is in use...
void setCodec(const QTextCodec *)
Sets the codec used to decode incoming characters.
Definition: Emulation.cpp:149
QTextCodec * codecForLocale()
const KeyboardTranslator * _keyTranslator
Definition: Emulation.h:458
virtual void writeToStream(TerminalCharacterDecoder *decoder, int startLine, int endLine)
Copies the output history from startLine to endLine into stream, using decoder to convert the termina...
Definition: Emulation.cpp:296
Definition: Emulation.h:437
bool programBracketedPasteMode() const
Definition: Emulation.cpp:70
The emulation is currently receiving data from its terminal input.
Definition: Emulation.h:62
virtual void sendMouseEvent(int buttons, int column, int line, int eventType)
Converts information about a mouse event into an xterm-compatible escape sequence and emits the chara...
Definition: Emulation.cpp:216
void programUsesMouseChanged(bool usesMouse)
This is emitted when the program running in the shell indicates whether or not it is interested in mo...
void resetScrolledLines()
Resets the count of the number of lines that the image has been scrolled up or down by...
Definition: Screen.cpp:749
Base class for terminal character decoders.
Definition: TerminalCharacterDecoder.h:45
void outputChanged()
Emitted when the contents of the screen image change.
void displayCharacter(unsigned short c)
Displays a new character at the current cursor position.
Definition: Screen.cpp:629
void setScroll(const HistoryType &, bool copyPreviousScroll=true)
Sets the type of storage used to keep lines in the history.
Definition: Screen.cpp:1353
virtual void sendString(const char *string, int length=-1)=0
Sends a string of characters to the foreground terminal process.
Definition: Emulation.cpp:211
Provides a window onto a section of a terminal screen.
Definition: ScreenWindow.h:52
bool isEmpty() const
QString keyBindings() const
Returns the name of the emulation's current key bindings.
Definition: Emulation.cpp:179
void newLine()
Moves the cursor down one line, if the MODE_NewLine mode flag is enabled then the cursor is returned ...
Definition: Screen.cpp:611
QString text() const
void toStartOfLine()
Moves the cursor to the beginning of the current line.
Definition: Screen.cpp:825
The terminal program has triggered a bell event to get the user's attention.
Definition: Emulation.h:57
bool programUsesMouse() const
Returns true if the active terminal program wants mouse input events.
Definition: Emulation.cpp:60
ScreenWindow * createWindow()
Creates a new window onto the output from this emulation.
Definition: Emulation.cpp:80
QString toUnicode(const char *chars, int len)
int lineCount() const
Returns the total number of lines, including those stored in the history.
Definition: Emulation.cpp:303
void stop()
const KeyboardTranslator * defaultTranslator()
Returns the default translator for Konsole.
Definition: KeyboardTranslatorManager.cpp:177
Definition: History.h:319
QString name() const
Returns the name of this keyboard translator.
Definition: KeyboardTranslator.cpp:651
void backspace()
Moves the cursor one column to the left and erases the character at the new cursor position...
Definition: Screen.cpp:547
void selectionChanged(const QString &text)
Emitted when the text selection is changed.
QTextDecoder * makeDecoder() const
void resizeImage(int new_lines, int new_columns)
Resizes the image to a new fixed size of new_lines by new_columns.
Definition: Screen.cpp:298
QTextCodec * codecForName(const QByteArray &name)
static KeyboardTranslatorManager * instance()
Returns the global KeyboardTranslatorManager instance.
Definition: KeyboardTranslatorManager.cpp:49
int length() const
void resetDroppedLines()
Resets the count of the number of lines dropped from the history.
Definition: Screen.cpp:745
void receiveData(const char *buffer, int len)
Processes an incoming stream of characters.
Definition: Emulation.cpp:225
void setKeyBindings(const QString &name)
Sets the key bindings used to key events ( received through sendKeyEvent() ) into character streams t...
Definition: Emulation.cpp:171
void start(int msec)
void stateSet(int state)
Emitted when the activity state of the emulation is set.
const QTextCodec * codec() const
Returns the codec used to decode incoming characters.
Definition: Emulation.h:169
const HistoryType & history() const
Returns the history store used by this emulation.
Definition: Emulation.cpp:144
int getHistLines() const
Return the number of lines in the history buffer.
Definition: Screen.cpp:1348
void setScreen(Screen *screen)
Sets the screen which this window looks onto.
Definition: ScreenWindow.cpp:46
bool isActive() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual void sendKeyEvent(QKeyEvent *)
Interprets a key press event and emits the sendData() signal with the resulting character stream...
Definition: Emulation.cpp:199
void imageSizeChanged(int lineCount, int columnCount)
Emitted when the terminal emulator's size has changed.
void useUtf8Request(bool)
Requests that the pty used by the terminal process be set to UTF 8 mode.
void setSingleShot(bool singleShot)
const KeyboardTranslator * findTranslator(const QString &name)
Returns the keyboard translator with the given name or 0 if no translator with that name exists...
Definition: KeyboardTranslatorManager.cpp:102
QByteArray toUtf8() const
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
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.