diff options
author | Ken Moore <moorekou@gmail.com> | 2016-03-14 13:09:08 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-03-14 13:09:08 -0400 |
commit | c72454508cfeae6d6dcebd31a8713b881fc632d9 (patch) | |
tree | eed88e1ea425059fce85468f408de54d8d5224ff /desktop-utilities/lumina-terminal/TerminalWidget.h | |
parent | Finish getting the special keys handled in lumina-terminal. Now the terminal ... (diff) | |
download | lumina-c72454508cfeae6d6dcebd31a8713b881fc632d9.tar.gz lumina-c72454508cfeae6d6dcebd31a8713b881fc632d9.tar.bz2 lumina-c72454508cfeae6d6dcebd31a8713b881fc632d9.zip |
Add the ANSI graphics support (most common ones) so that the text is bold/italics/colored/other as necessary.
Diffstat (limited to 'desktop-utilities/lumina-terminal/TerminalWidget.h')
-rw-r--r-- | desktop-utilities/lumina-terminal/TerminalWidget.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop-utilities/lumina-terminal/TerminalWidget.h b/desktop-utilities/lumina-terminal/TerminalWidget.h index 7f65f7d7..6fe660a7 100644 --- a/desktop-utilities/lumina-terminal/TerminalWidget.h +++ b/desktop-utilities/lumina-terminal/TerminalWidget.h @@ -25,12 +25,13 @@ public: private: TTYProcess *PROC; + QTextCharFormat DEFFMT, CFMT; //default/current text format - QSocketNotifier *sn; - //Incoming Data parsing void applyData(QByteArray data); //overall data parsing void applyANSI(QByteArray code); //individual code application + void applyANSIColor(int code); //Add the designated color code to the CFMT structure + //Outgoing Data parsing void sendKeyPress(int key); |