24 #ifndef TERMINAL_CHARACTER_DECODER_H 25 #define TERMINAL_CHARACTER_DECODER_H 46 virtual void begin(QTextStream* output) = 0;
48 virtual void end() = 0;
84 virtual void begin(QTextStream* output);
118 virtual void begin(QTextStream* output);
An entry in a terminal display's color palette.
void closeSpan(QString &text)
virtual void decodeLine(const Character *const characters, int count, LineProperty properties)=0
Converts a line of terminal characters with associated properties into a text string and writes the s...
const ColorEntry * _colorTable
A single character in the terminal which consists of a unicode character value, foreground and backgr...
Describes the color of a single character in the terminal.
unsigned char LineProperty
void openSpan(QString &text, const QString &style)
bool trailingWhitespace() const
Returns whether trailing whitespace at the end of lines is included in the output.
A terminal character decoder which produces plain text, ignoring colours and other appearance-related...
write the output to stdout if nargout otherwise return the output in a character string able ode tem append Append to the destination instead of overwriting tem ascii Save a matrix in a text file without a header or any other information The matrix must be D and only the real part of any complex value is written to the file Numbers are stored in single precision format and separated by spaces Additional options for the and gzip can also be used to convert the files for backward compatibility This option is only available if Octave was built with a link to the zlib libraries end table The list of variables to save may use wildcard patterns containing the following special characters
virtual ~TerminalCharacterDecoder()
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...
CharacterColor _lastForeColor
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...
bool _includeTrailingWhitespace
virtual void end()
End decoding.
Base class for terminal character decoders.
A terminal character decoder which produces pretty HTML markup.
void setTrailingWhitespace(bool enable)
Set whether trailing whitespace at the end of lines should be included in the output.
virtual void end()=0
End decoding.
virtual void end()
End decoding.
HTMLDecoder()
Constructs an HTML decoder using a default black-on-white color scheme.
virtual void begin(QTextStream *output)
Begin decoding characters.
CharacterColor _lastBackColor
virtual void begin(QTextStream *output)
Begin decoding characters.
void setColorTable(const ColorEntry *table)
Sets the colour table which the decoder uses to produce the HTML colour codes in its output...
virtual void begin(QTextStream *output)=0
Begin decoding characters.
T::properties & properties(graphics_object obj)