Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Text editor/viewer with ANSI codes rendering support for Windows [closed]

I need some tool to display text containing ANSI codes correctly on Windows. No full support needed, but at least coloring/bold is a must.

Reason: My logger/debug module produce nicely rendered rich output with important sections colored using ANSI codes. This helps a lot when debugging on the serial terminal, but if I dump the debug to a file or copy-paste it into a text editor on Windows (interactive remote debug is not always viable), at best all the ANSI codes are stripped, at worst they are rendered as junk characters obscuring the real data. Rudimentary editing capabilities would be appreciated to be able to pick out specific parts, annotate, and so on.

like image 827
SF. Avatar asked Feb 16 '10 09:02

SF.


2 Answers

The open-source editor Atom has the package language-ansi-styles. It supports all kinds of formatting except ;r;g;b.

enter image description here enter image description here

like image 94
guo Avatar answered Oct 01 '22 01:10

guo


You might have some more luck with ASCII/ANSI utilities, like the ones listed here: List of ASCII/ANSI/NFO utilities

**Note: some files on this page might be outdated, you might find newer versions of these utilities on their respective homepages.*

For example, the latest version of NFOPad can be found here.

like image 38
Andras Vass Avatar answered Oct 01 '22 02:10

Andras Vass