Konsole
TerminalCharacterDecoder.cpp
Go to the documentation of this file.
68 void PlainTextDecoder::decodeLine(const Character* const characters, int count, LineProperty /*properties*/
114 const ushort* chars = ExtendedCharTable::instance.lookupExtendedChar(characters[i].character, extendedCharLength);
186 void HTMLDecoder::decodeLine(const Character* const characters, int count, LineProperty /*properties*/
248 const ushort* chars = ExtendedCharTable::instance.lookupExtendedChar(characters[i].character, extendedCharLength);
void clear()
void setRecordLinePositions(bool record)
Enables recording of character positions at which new lines are added.
Definition: TerminalCharacterDecoder.cpp:60
QString & append(QChar ch)
QString name() const
static ExtendedCharTable instance
The global ExtendedCharTable instance.
Definition: ExtendedCharTable.h:68
int KONSOLEPRIVATE_EXPORT konsole_wcwidth(quint16 oucs)
Definition: konsole_wcwidth.cpp:129
PlainTextDecoder()
Definition: TerminalCharacterDecoder.cpp:35
virtual void decodeLine(const Character *const characters, int count, LineProperty properties)
Converts a line of terminal characters with associated properties into a text string and writes the s...
Definition: TerminalCharacterDecoder.cpp:68
virtual void decodeLine(const Character *const characters, int count, LineProperty properties)
Converts a line of terminal characters with associated properties into a text string and writes the s...
Definition: TerminalCharacterDecoder.cpp:186
Always draw text in this color with a bold weight.
Definition: CharacterColor.h:46
void setColorTable(const ColorEntry *table)
Sets the color table which the decoder uses to produce the HTML color codes in its output...
Definition: TerminalCharacterDecoder.cpp:290
A single character in the terminal which consists of a unicode character value, foreground and backgr...
Definition: Character.h:77
void setTrailingWhitespace(bool enable)
Set whether trailing whitespace at the end of lines should be included in the output.
Definition: TerminalCharacterDecoder.cpp:41
QString fromUtf16(const ushort *unicode, int size)
bool isEmpty() const
FontWeight
Specifies the weight to use when drawing text with this color.
Definition: CharacterColor.h:44
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: ExtendedCharTable.cpp:113
QColor color(const ColorEntry *palette) const
Returns the color within the specified color palette.
Definition: CharacterColor.h:277
CharacterColor backgroundColor
The color used to draw this character's background.
Definition: Character.h:117
bool trailingWhitespace() const
Returns whether trailing whitespace at the end of lines is included in the output.
Definition: TerminalCharacterDecoder.cpp:45
QList< int > linePositions() const
Returns of character positions in the output stream at which new lines where added.
Definition: TerminalCharacterDecoder.cpp:64
ColorEntry::FontWeight fontWeight(const ColorEntry *base) const
Returns true if this character should always be drawn in bold when it is drawn with the specified pal...
Definition: Character.h:188
virtual void begin(QTextStream *output)
Begin decoding characters.
Definition: TerminalCharacterDecoder.cpp:49
QString * string() const
int count() const
void reserve(int size)
HTMLDecoder()
Constructs an HTML decoder using a default black-on-white color scheme.
Definition: TerminalCharacterDecoder.cpp:139
Use the current font weight set by the terminal application.
Definition: CharacterColor.h:53
quint8 rendition
A combination of RENDITION flags which specify options for drawing the character. ...
Definition: Character.h:111
virtual void begin(QTextStream *output)
Begin decoding characters.
Definition: TerminalCharacterDecoder.cpp:147
CharacterColor foregroundColor
The foreground color used to draw this character.
Definition: Character.h:114
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.