ansiparser 1.0.3 ansiparser: ^1.0.3 copied to clipboard
A convenient library for converting ANSI escape sequences into text or HTML.
example/ansiparser_example.dart
import 'package:ansiparser/ansiparser.dart' as ansiparser;
void main() {
final ansipScreen = ansiparser.newScreen();
ansipScreen.put('\x1b[1;6H-World!\x1b[1;1HHello');
ansipScreen.parse();
final converted = ansipScreen.toFormattedString();
print(converted); // ['Hello-World!']
}