More ANSI packages?

42 views
Skip to first unread message

Samuel Rawlins

unread,
Feb 1, 2017, 7:35:43 PM2/1/17
to General Dart Discussion
I see the 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?
Reply all
Reply to author
Forward
0 new messages