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();
|
status.clear();
|
||||||
} else if (component.startsWith("TEXT:"))
|
} else if (component.startsWith("TEXT:"))
|
||||||
ansi.a(component.substring(5));
|
ansi.a(component.substring(5));
|
||||||
else if (component.startsWith("COLOR:"))
|
else if (component.startsWith("COLOR:")) {
|
||||||
if (component.startsWith("COLOR:FOREGROUND:"))
|
if (component.startsWith("COLOR:FOREGROUND:"))
|
||||||
ansi.fg(Ansi.Color.valueOf(component.substring(17)));
|
ansi.fg(Ansi.Color.valueOf(component.substring(17)));
|
||||||
else if (component.startsWith("COLOR:BACKGROUND:"))
|
else if (component.startsWith("COLOR:BACKGROUND:"))
|
||||||
ansi.bg(Ansi.Color.valueOf(component.substring(17)));
|
ansi.bg(Ansi.Color.valueOf(component.substring(17)));
|
||||||
else if (component.startsWith("ATTRIBUTE:"))
|
} else if (component.startsWith("ATTRIBUTE:"))
|
||||||
if (component.startsWith("ATTRIBUTE:BLINK")) {
|
if (component.startsWith("ATTRIBUTE:BLINK")) {
|
||||||
if (status.contains("ATTRIBUTE:BLINK"))
|
if (status.contains("ATTRIBUTE:BLINK"))
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue