sequin
Make ANSI escape sequences human-readable. tldr-pages
On several platforms
Several platforms
Make ANSI escape sequences human-readable. Useful for debugging, learning, or inspecting terminal output.
Describe ANSI escape sequences from a string
printf "\x1b[38;5;4mCiao, \x1b[1;7mBaby.\x1b[0m\n" | sequinIdentifyInspect colorized output from another command (e.g., ls)
ls -l --color=always | sequinIdentify-llong (show full details) toybox--color=always (default) =auto (when stdout is tty) =never exe=green suid=red suidfile=redback stickydir=greenback device=yellow symlink=turquoise/red dir=blue socket=purple toyboxExamine a file containing ANSI sequences (e.g., a TUI golden file)
cat path/to/file.golden | sequinIdentifyExecute a command directly within a fake TTY to inspect its output
sequin -- ls -l go.*IdentifyHighlight raw ANSI sequences inline for easier reading
git -c status.color=always status -sb | sequin -rIdentify