MauiKit Terminal
Emulation.cpp
68 connect(this, &Emulation::programBracketedPasteModeChanged, &Emulation::bracketedPasteModeChanged);
70 connect(this, &Emulation::cursorChanged, [this](KeyboardCursorShape cursorShape, bool blinkingCursorEnabled) {
72 QString(QLatin1String("CursorShape=%1;BlinkingCursorEnabled=%2")).arg(static_cast<int>(cursorShape)).arg(blinkingCursorEnabled));
107 connect(this, &Emulation::handleCommandFromKeyboard, window.get(), &ScreenWindow::handleCommandFromKeyboard);
261// a) It decoded incoming characters one-by-one, which is slow in the current version of Qt (4.2 tech preview)
262// b) It messed up decoding of non-ASCII characters, with the result that (for example) chinese characters
265// There is something about stopping the _decoder if "we get a control code halfway a multi-byte sequence" (see below)
266// which hasn't been ported into the newer function (above). Hopefully someone who understands this better
385bool ExtendedCharTable::extendedCharMatch(ushort hash, ushort *unicodePoints, ushort length) const
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:220
void imageSizeChanged(int lineCount, int columnCount)
Emitted when the program running in the terminal changes the screen size.
bool programUsesMouse() const
Returns true if the active terminal program wants mouse input events.
Definition Emulation.cpp:78
void programUsesMouseChanged(bool usesMouse)
This is emitted when the program running in the shell indicates whether or not it is interested in mo...
void receiveData(const char *buffer, int len)
Processes an incoming stream of characters.
Definition Emulation.cpp:230
KeyboardCursorShape
This enum describes the available shapes for the keyboard cursor.
Definition Emulation.h:128
void stateSet(int state)
Emitted when the activity state of the emulation is set.
ScreenWindow * createWindow()
Creates a new window onto the output from this emulation.
Definition Emulation.cpp:98
int lineCount() const
Returns the total number of lines, including those stored in the history.
Definition Emulation.cpp:317
const HistoryType & history() const
Returns the history store used by this emulation.
Definition Emulation.cpp:138
void outputChanged()
Emitted when the contents of the screen image change.
const QTextCodec * codec() const
Returns the codec used to decode incoming characters.
Definition Emulation.h:200
QSize imageSize() const
Returns the size of the screen image which the emulation produces.
Definition Emulation.cpp:372
virtual void setImageSize(int lines, int columns)
Change the size of the emulation's image.
Definition Emulation.cpp:352
void titleChanged(int title, const QString &newTitle)
Emitted when the program running in the terminal wishes to update the session's title.
virtual void sendKeyEvent(QKeyEvent *, bool fromPaste)
Interprets a key press event and emits the sendData() signal with the resulting character stream.
Definition Emulation.cpp:204
void setKeyBindings(const QString &name)
Sets the key bindings used to key events ( received through sendKeyEvent() ) into character streams t...
Definition Emulation.cpp:164
void setHistory(const HistoryType &)
Sets the history store used by this emulation.
Definition Emulation.cpp:131
QString keyBindings() const
Returns the name of the emulation's current key bindings.
Definition Emulation.cpp:172
void cursorChanged(KeyboardCursorShape cursorShape, bool blinkingCursorEnabled)
Emitted when the cursor shape or its blinking state is changed via DECSCUSR sequences.
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:307
void sendData(const char *data, int len)
Emitted when a buffer of data is ready to send to the standard input of the terminal.
void useUtf8Request(bool)
Requests that the pty used by the terminal process be set to UTF 8 mode.
void setCodec(const QTextCodec *)
Sets the codec used to decode incoming characters.
Definition Emulation.cpp:143
virtual void sendString(const char *string, int length=-1)=0
Sends a string of characters to the foreground terminal process.
Definition Emulation.cpp:215
A table which stores sequences of unicode characters, referenced by hash keys.
Definition Character.h:172
std::span< const ushort > lookupExtendedChar(ushort hash, ushort &length) const
Looks up and returns a pointer to a sequence of unicode characters which was added to the table using...
Definition Emulation.cpp:431
ushort createExtendedChar(ushort *unicodePoints, ushort length)
Adds a sequences of unicode characters to the table and returns a hash code which can be used later t...
Definition Emulation.cpp:401
const KeyboardTranslator * defaultTranslator()
Returns the default translator for Konsole.
Definition KeyboardTranslator.cpp:161
const KeyboardTranslator * findTranslator(const QString &name)
Returns the keyboard translator with the given name or 0 if no translator with that name exists.
Definition KeyboardTranslator.cpp:99
static KeyboardTranslatorManager * instance()
Returns the global KeyboardTranslatorManager instance.
Definition KeyboardTranslator.cpp:873
QString name() const
Returns the name of this keyboard translator.
Definition KeyboardTranslator.cpp:817
Provides a window onto a section of a terminal screen.
Definition ScreenWindow.h:52
void selectionChanged()
Emitted when the selection is changed.
void notifyOutputChanged()
Notifies the window that the contents of the associated terminal screen have changed.
Definition ScreenWindow.cpp:260
void displayCharacter(QChar c)
Displays a new character at the current cursor position.
Definition Screen.cpp:646
void writeLinesToStream(TerminalCharacterDecoder *decoder, int fromLine, int toLine) const
Copies part of the output to a stream.
Definition Screen.cpp:1237
void resetScrolledLines()
Resets the count of the number of lines that the image has been scrolled up or down by,...
Definition Screen.cpp:732
void backspace()
Moves the cursor one column to the left and erases the character at the new cursor position.
Definition Screen.cpp:567
void resetDroppedLines()
Resets the count of the number of lines dropped from the history.
Definition Screen.cpp:728
void newLine()
Moves the cursor down one line, if the MODE_NewLine mode flag is enabled then the cursor is returned ...
Definition Screen.cpp:629
Base class for terminal character decoders.
Definition TerminalCharacterDecoder.h:45
const char * constData() const const
char16_t & unicode()
QString text() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool isEmpty() const const
qsizetype length() const const
QByteArray toUtf8() const const
bool isActive() const const
void setSingleShot(bool singleShot)
void start()
void stop()
void timeout()
void setScreen(QScreen *screen)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:55:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:55:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.