charmbracelet / sequin

Human-readable ANSI sequences 🪩
MIT License
480 stars 6 forks source link

Higher fidelity foreground and background descriptions #16

Open meowgorithm opened 6 days ago

meowgorithm commented 6 days ago

It could be helpful to have a little more detail in color sequences. For example, the following sequences currently translate as…

\x1b[32m     -> CSI 32m:    Foreground color: Green
\x1b[38;5;4m -> CSI 38;5;4m Foreground color: 4

…and it could be nice to see:

\x1b[32m     -> CSI 32m:    ANSI foreground color: Green
\x1b[38;5;4m -> CSI 38;5;4m ANSI256 foreground color: 4