forked from StarOpenSource/Engine
Fix AnsiShortcodeParser parsing
This commit is contained in:
parent
f76878f067
commit
0c26660f27
1 changed files with 2 additions and 2 deletions
|
@ -63,12 +63,12 @@ public final class AnsiShortcodeParser extends ShortcodeParser {
|
|||
status.clear();
|
||||
} else if (component.startsWith("TEXT:"))
|
||||
ansi.a(component.substring(5));
|
||||
else if (component.startsWith("COLOR:"))
|
||||
else if (component.startsWith("COLOR:")) {
|
||||
if (component.startsWith("COLOR:FOREGROUND:"))
|
||||
ansi.fg(Ansi.Color.valueOf(component.substring(17)));
|
||||
else if (component.startsWith("COLOR:BACKGROUND:"))
|
||||
ansi.bg(Ansi.Color.valueOf(component.substring(17)));
|
||||
else if (component.startsWith("ATTRIBUTE:"))
|
||||
} else if (component.startsWith("ATTRIBUTE:"))
|
||||
if (component.startsWith("ATTRIBUTE:BLINK")) {
|
||||
if (status.contains("ATTRIBUTE:BLINK"))
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue