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*/
247 const ushort* chars = ExtendedCharTable::instance.lookupExtendedChar(characters[i].character, extendedCharLength);
void setRecordLinePositions(bool record)
Enables recording of character positions at which new lines are added.
Definition: TerminalCharacterDecoder.cpp:60
static ExtendedCharTable instance
The global ExtendedCharTable instance.
Definition: ExtendedCharTable.h:68
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:289
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
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:278
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
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-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.