language-ansi-styles

atom grammar for ANSI SGR styles / escape codes

lloiser

4,121

1

0.1.0

MIT

GitHub

language-ansi-styles

Converts ANSI escape sequences into formatted text like in your terminal/shell.

Demo

Even basic images are possible:

Smiley

Options

Caveats

With these escape codes you can specify any rgb color (each color ranging from 0-255). Due to the nature of a grammar in atom it is not possible to create styles on demand as they occur. I could (in theory) create >16 million styles to capture every possible rgb color, but I doubt atom feels well afterwards...

atom v1.15.0 introduced a hard limit after how many characters a line automatically wraps to a line. This is actually not a big deal for a typical user. But keep it in mind before opening an issue.

There is currently no possibility to define/select themes. For now you can override the colors in your own atom stylesheet.