mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 14:49:57 +00:00
Update cheatsheets
This commit is contained in:
31
tldr/sequin
Normal file
31
tldr/sequin
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
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 "{{[38;5;4mCiao, [1;7mBaby.[0m
|
||||
}}" | 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`
|
||||
Reference in New Issue
Block a user