Skip to content

Commit

Permalink
Colons support in RGB definition
Browse files Browse the repository at this point in the history
With this patch, non-color sequences using colons are also accepted. I
consider such sequences undefined behavior, though.

Closes lxqt/qterminal#78
  • Loading branch information
Chih-Hsuan Yen authored and semiscone committed Jul 14, 2020
1 parent 6d26474 commit e307d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Vt102Emulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ void Vt102Emulation::receiveChar(wchar_t cc)

if (epe( )) { processToken( TY_CSI_PE(cc), 0, 0); resetTokenizer(); return; }
if (ees(DIG)) { addDigit(cc-'0'); return; }
if (eec(';')) { addArgument(); return; }
if (eec(';') || eec(':')) { addArgument(); return; }
for (int i=0;i<=argc;i++)
{
if (epp())
Expand Down

0 comments on commit e307d2b

Please sign in to comment.