From 149555cc350761d9545009ef1358350ca9b3a4d8 Mon Sep 17 00:00:00 2001 From: Fox2Code Date: Wed, 1 Jun 2022 17:26:44 +0200 Subject: [PATCH] Add note about escape sequences. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 42f0efe..972f6c4 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,8 @@ Example: `38;2;164;198;57` set foreground color to rgb(164, 198, 57) 2 -> R;G;B 5 -> X (Only support from 0 to 15, see: [Wikipedia ANSI Page](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors)) +Note: `String.trim()` may remove escape sequences, use `AnsiParser.patchEscapeSequence` first +to avoid escape sequences from being trimmed. # Setup @@ -68,7 +70,7 @@ repositories { dependencies { - implementation 'com.github.Fox2Code:AndroidANSI:1.0.0' + implementation 'com.github.Fox2Code:AndroidANSI:1.0.1' } ```