aboutsummaryrefslogtreecommitdiff
path: root/desktop-utilities/lumina-terminal/TerminalWidget.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-03-14 13:09:08 -0400
committerKen Moore <moorekou@gmail.com>2016-03-14 13:09:08 -0400
commitc72454508cfeae6d6dcebd31a8713b881fc632d9 (patch)
treeeed88e1ea425059fce85468f408de54d8d5224ff /desktop-utilities/lumina-terminal/TerminalWidget.h
parentFinish getting the special keys handled in lumina-terminal. Now the terminal ... (diff)
downloadlumina-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.h5
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);
bgstack15