Files
cheatsheet-tldr/tldr/sequin
2025-10-24 00:17:31 +00:00

32 lines
800 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# sequin
> Make ANSI escape sequences human-readable.
> Useful for debugging, learning, or inspecting terminal output.
> More information: <https://github.com/charmbracelet/sequin>.
- Describe ANSI escape sequences from a string:
`printf "{{Ciao, Baby.
}}" | sequin`
- Inspect colorized output from another command (e.g., `ls`):
`ls -l --color=always | sequin`
- Examine a file containing ANSI sequences (e.g., a TUI golden file):
`cat {{path/to/file.golden}} | sequin`
- Execute a command directly within a fake TTY to inspect its output:
`sequin -- {{ls -l go.*}}`
- Highlight raw ANSI sequences inline for easier reading:
`git -c status.color=always status -sb | sequin -r`