Sequin is a small utility that can help you debug your CLIs and TUIs. It's also great for describing escape sequences you might not understand, and ex

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-11-19 02:30:02

Sequin is a small utility that can help you debug your CLIs and TUIs. It's also great for describing escape sequences you might not understand, and exploring what TUIs are doing under the hood.

There are lots more use cases too, like inspecting golden files such as the ones used by teatest to crystalize Bubble Tea output.

If you use a package (like Homebrew, Debs, etc), the completions should be set up automatically, given your shell is configured properly.

Many programs render their output as plain text when output isn't a terminal (i.e. when redirecting to a file or piping to a program, like sequin). This is a good thing, except in this case when we actually want ANSI sequences so we can inspect them. Thankfully there are usually ways to force colors, like by setting CLICOLOR_FORCE=1 or with flags to force ANSI output. If you're not seeing sequences be sure to to check what works in the case of your specific program.

One of the paint points that we find when reading raw ANSI output is that it’s hard to visually separate sequences from reguar text. For situations like this you can use the --raw/-r flag to simply highlight sequences inline:

Leave a Comment