Skip to content

Conversation

sharkdp
Copy link
Owner

@sharkdp sharkdp commented Feb 25, 2020

This changes the existing ansi-8bit and ansi-24bit formats to print out an escaped ANSI sequence that a user can see in the terminal output:

❯ pastel format ansi-8bit 556270 4ecdc4 c7f484 ff6b6b c44d58      
\x1b[38;5;59m
\x1b[38;5;44m
\x1b[38;5;192m
\x1b[38;5;203m
\x1b[38;5;131m

❯ pastel format ansi-24bit 556270 4ecdc4 c7f484 ff6b6b c44d58
\x1b[38;2;85;98;112m
\x1b[38;2;78;205;196m
\x1b[38;2;199;244;132m
\x1b[38;2;255;107;107m
\x1b[38;2;196;77;88m

This is a breaking change. The existing formats are now available as ansi-8bit-escapecode and ansi-24bit-escapecode.

This closes #113

@sharkdp sharkdp merged commit bb3d2ab into master Feb 25, 2020
@sharkdp sharkdp deleted the escaped-ansi-formats branch March 15, 2020 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pastel format does not print ansi-24bit colors
1 participant