jnthn / grammar-debugger

Grammar::Debugger and Grammer::Tracer Perl 6 modules
36 stars 20 forks source link

Make it work under Win32/Rakudo* 2014.03.01 (again) - and fix #2 & #4 #6

Closed meisl closed 10 years ago

meisl commented 10 years ago

Although I'm pretty confident that taking this pull request as is will only make it work better (or, as in my case: work at all) - there are quite a few things that I hope to be able to provide soon; as listed below:

meisl commented 10 years ago

Re color output on Windows: right now I think it's fine enough to simply filter the output through perl5's Win32::Console::ANSI; like so: perl6 MyGrammar.pm | perl -e "use Win32::Console::ANSI; print while (<>)"

jnthn commented 10 years ago

Alternatively, use Console2, or AnsiCon, which know how to interpret the ANSI color codes. :-)

Thanks for the patches!

meisl commented 10 years ago

Thanks & yw :)


Console2: http://www.hanselman.com/blog/Console2ABetterWindowsCommandPrompt.aspx AnsiCon: https://github.com/adoxa/ansicon

meisl commented 10 years ago

Crossed out the stuff that's in pr #7.