'Samuel Rawlins' via Dart Misc
2017-02-02 00:35:34 UTC
I see the ansicolor <https://pub.dartlang.org/packages/ansicolor> package
which seems to just provide "I am writing a cmdline tool and I want to
print to the terminal in colors."
However, I'm looking for a package that does some different things:
* take a String and strip ANSI codes from it (I almost expect this from
dart:convert),
* take a String and output some sort of structure that shows the ANSI
codes, something like:
parseAnsi("Text \033[1mBOLD\033[0m Regular")
// returns [["Text ", 0], ["BOLD", Ansi.BOLD], [" Regular", 0]].
Anyone know of any packages?
which seems to just provide "I am writing a cmdline tool and I want to
print to the terminal in colors."
However, I'm looking for a package that does some different things:
* take a String and strip ANSI codes from it (I almost expect this from
dart:convert),
* take a String and output some sort of structure that shows the ANSI
codes, something like:
parseAnsi("Text \033[1mBOLD\033[0m Regular")
// returns [["Text ", 0], ["BOLD", Ansi.BOLD], [" Regular", 0]].
Anyone know of any packages?
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.