Konsole
Emulation.cpp
Go to the documentation of this file.
238 // a) It decoded incoming characters one-by-one, which is slow in the current version of Qt (4.2 tech preview)
239 // b) It messed up decoding of non-ASCII characters, with the result that (for example) chinese characters
242 //There is something about stopping the _decoder if "we get a control code halfway a multi-byte sequence" (see below)
243 //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:125
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.
virtual void setImageSize(int lines, int columns)
Change the size of the emulation's image.
Definition: Emulation.cpp:326
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:366
const HistoryType & getScroll() const
Returns the type of storage used to keep lines in the history.
Definition: Screen.cpp:1371
Definition: Emulation.h:434
virtual char eraseChar() const
Returns the special character used for erasing character.
Definition: Emulation.cpp:321
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:137
const KeyboardTranslator * _keyTranslator
Definition: Emulation.h:454
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:284
Definition: Emulation.h:433
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:204
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:199
Provides a window onto a section of a terminal screen.
Definition: ScreenWindow.h:52
QString keyBindings() const
Returns the name of the emulation's current key bindings.
Definition: Emulation.cpp:167
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
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:57
ScreenWindow * createWindow()
Creates a new window onto the output from this emulation.
Definition: Emulation.cpp:67
int lineCount() const
Returns the total number of lines, including those stored in the history.
Definition: Emulation.cpp:291
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.
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
static KeyboardTranslatorManager * instance()
Returns the global KeyboardTranslatorManager instance.
Definition: KeyboardTranslatorManager.cpp:49
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:213
void setKeyBindings(const QString &name)
Sets the key bindings used to key events ( received through sendKeyEvent() ) into character streams t...
Definition: Emulation.cpp:159
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:132
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:45
virtual void sendKeyEvent(QKeyEvent *)
Interprets a key press event and emits the sendData() signal with the resulting character stream...
Definition: Emulation.cpp:187
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.
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.