ANSI: Simplify escape sequence

Change-Id: I0088a922af7723aabb6751ac80af39467d4cfb0b
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
This commit is contained in:
Orgad Shaneh
2013-09-11 10:16:03 +03:00
committed by Orgad Shaneh
parent f1f1f65f7c
commit 61eb23082b
2 changed files with 15 additions and 11 deletions

View File

@@ -77,7 +77,7 @@ QList<StringFormatPair> AnsiEscapeCodeHandler::parseText(const QString &text,
QTextCharFormat charFormat = m_previousFormatClosed ? defaultFormat : m_previousFormat;
const QString escape = QChar::fromLatin1(27) + QLatin1Char('[');
const QString escape = QLatin1String("\x1b[");
if (!text.contains(escape)) {
outputData << StringFormatPair(text, charFormat);
return outputData;