Sequin: A powerful little tool for inspecting ANSI escape sequences

linsomniac | 102 points

People have been posting about these Charm projects for a few years now [1]. I think they look cool and, while I know they exist, I have never found myself in a position where I want to add them to my consumer-facing projects, nor even my personal projects. Does anyone have examples of (public) non-trivial Terminal programs that make use of these libraries?

[1] https://news.ycombinator.com/from?site=github.com/charmbrace...

guessmyname | 2 days ago

Animated images in the readme are not a very good experience. I’m trying to read the output and make sense of it and it just blinks out. There’s no good reason to have animation here. We all know how text is typed in the terminal.

pointlessone | 2 days ago

Or run

kitty --dump-commands program-whose-output-you-want-to-inspect

You can even save the --dump-commands output as edit it and then replay it with

kitty --dump-commands program > commands.txt

kitty --replay-commands commands.txt

aumerle | 2 days ago

Great work: this tool will be really useful to me!

(Note: the "terminal animations" in github make the examples difficult to read.)

ljouhet | 2 days ago

That's fantastic. Regarding the note about output detection, here is a short tcl script that attempts to trick the app into thinking it's writing to a terminal: https://github.com/jakeogh/colorpipe

jakeogh | 2 days ago

Isn't it true that ANSI sequences can vary depending on the terminal emulator? Does this program account for that somehow?

In my shell scripts I often use `tput bold` etc instead of hardcoding the sequences.

jchook | 2 days ago

Amazing!! Love seeing these tools from charmbracelet!

On a side note - VHS and mods have been super helpful to me.

binarybard | 2 days ago

Another banger from Charm! Adding this to my tool belt for sure.

junon | 2 days ago