mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-08-05 01:35:34 +00:00
Formatting fix
This commit is contained in:
parent
dc94735a70
commit
91b40460fd
@ -51,8 +51,11 @@ MainWindow::~MainWindow()
|
||||
delete m_ui;
|
||||
}
|
||||
/* TODO: more complete Vt102 emulation */
|
||||
// based on information: http://en.m.wikipedia.org/wiki/ANSI_escape_code http://misc.flogisoft.com/bash/tip_colors_and_formatting http://invisible-island.net/xterm/ctlseqs/ctlseqs.html
|
||||
void MainWindow::parseEscapeSequence(int attribute, QListIterator< QString > & i, QTextCharFormat & textCharFormat, QTextCharFormat const & defaultTextCharFormat)
|
||||
// based on information: http://en.m.wikipedia.org/wiki/ANSI_escape_code
|
||||
// http://misc.flogisoft.com/bash/tip_colors_and_formatting
|
||||
// http://invisible-island.net/xterm/ctlseqs/ctlseqs.html
|
||||
void MainWindow::parseEscapeSequence(int attribute, QListIterator<QString>& i, QTextCharFormat& textCharFormat,
|
||||
const QTextCharFormat& defaultTextCharFormat)
|
||||
{
|
||||
switch (attribute) {
|
||||
case 0 : { // Normal/Default (reset all attributes)
|
||||
|
@ -29,7 +29,8 @@ public:
|
||||
explicit MainWindow(QWidget *parent = 0);
|
||||
~MainWindow();
|
||||
void setTextTermFormatting(QTextEdit* textEdit, QString const & text);
|
||||
void parseEscapeSequence(int attribute, QListIterator< QString > & i, QTextCharFormat & textCharFormat, QTextCharFormat const & defaultTextCharFormat);
|
||||
void parseEscapeSequence(int attribute, QListIterator<QString>& i, QTextCharFormat& textCharFormat,
|
||||
const QTextCharFormat& defaultTextCharFormat);
|
||||
private slots:
|
||||
void onExtract();
|
||||
void onReturnPressed();
|
||||
|
Loading…
x
Reference in New Issue
Block a user