Jansi is a small java library that allows you to use ANSI escape sequences to format your console output which works even on windows.
1.11k
stars
140
forks
source link
Is it possible to parse ansi text to get text and its attributes using Jansi? #234
Closed
PavelTurk closed 2 years ago
For example I have the following string
2022-03-14 02:32:24.130 [main] ESC[33;1m[WARN]ESC[m org.eclipse.aether.internal.impl.WarnChecksumPolicy
Could anyone say if it is possible to parse this piece
ESC[33;1m[WARN]ESC[m
to get color, brightness attribute and text (WARN) using Jansi?