My previous commit implementing hex colors [1] has a bug which
prevents hex colors from being rendered in some cases.
This commit fixes the issue by adding a missing switch case.
[1]: 0aa7db9c0afbe989d0f8c8b9110f685e17439003
---
lib/ansi.dart | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/ansi.dart b/lib/ansi.dart
index bfb01ce..8a52da2 100644
--- a/lib/ansi.dart
+++ b/lib/ansi.dart
@@ -69,6 +69,7 @@ List<TextSpan> applyAnsiFormatting(String s, TextStyle base) {
case '\x1D': // italic
case '\x1F': // underline
case '\x03': // color
+ case '\x04': // hex color
List<TextDecoration> decorations = [base.decoration ?? TextDecoration.none];
if (underline) {
decorations.add(TextDecoration.underline);
base-commit: 09f6ece77bbf9e3727541eea66b07e2986779bf0
--
2.39.1