6 ms·
Sequin: A powerful little tool for inspecting ANSI escape sequences
- junon 2y agoAnother banger from Charm! Adding this to my tool belt for sure.
- guessmyname 2y agoPeople 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/charmbracelet https://news.ycombinator.com/from?site=github.com/charmbrace...
- woodruffw 2y agoI similarly haven't used them, but vhs[1] looks very cool and useful (at least for my purposes, where I like to have lots of terminal demos in my documentation). [1]: https://github.com/charmbracelet/vhs https://github.com/charmbracelet/vhs
- terminaltrove 2y ago[dead]
- bewuethr 2y agoThe GitHub CLI (https://cli.github.com/ https://cli.github.com/) uses Bubble Tea. There's no good way to find popular dependents, but you can browse https://github.com/charmbracelet/bubbletea/network/dependents https://github.com/charmbracelet/bubbletea/network/dependent... to see GitHub repos that import the module.
- wlamartin 2y agoJust as a note, the GitHub CLI doesn't use bubbletea itself right now, though it does use other charm libraries such as lipgloss and glamour. That said, it's quite likely that at some point we will use huh for our prompting library, which does use bubbletea.
- bewuethr 2y agoOh wow, I could have sworn! Did you never use bubble tea and bubbles, or did you remove them at some point?
- oulipo 2y agoI'm using `gum` in my personal shell scripts when I want basic interaction (show a list, checkboxes, etc)
- ljouhet 2y agoGreat work: this tool will be really useful to me! (Note: the "terminal animations" in github make the examples difficult to read.)
- EdSchouten 2y agoIndeed. A screenshot of the resulting output would have been more useful.
- frizlab 2y agoI literally took a screenshot of the animation to be able to read it yeah.
- aumerle 2y agoOr 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
- jakeogh 2y agoThat'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 https://github.com/jakeogh/colorpipe
- pointlessone 2y agoAnimated 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.
- kreetx 2y agoIt shows the CLI use, seems pretty useful to me.
- Timwi 2y agoIt doesn't show anything a still image that I can just read wouldn't also show. It has no upside and only downsides.
- arcanemachiner 2y agoGood use case for Asciinema. https://asciinema.org https://asciinema.org https://github.com/asciinema/asciinema https://github.com/asciinema/asciinema EDIT: Looks like image generator might be from one of their own projects: https://github.com/charmbracelet/vhs https://github.com/charmbracelet/vhs
- Gormo 2y agoGiven the purpose of the tool, it seems like the most appropriate solution would be to use ANSI itself to animate the text.
- jchook 2y agoIsn'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.
- Joker_vD 2y agoWell, yes, the meaning can depend, although many sequences have standardized meanings. The format of the sequences itself is also standardized but of course, the terminals don't need to use it either! There has been lots of terminals that use their own bespoke control sequences. Still, nowadays people who write new terminal emulators tend to approach with "do what xterm/libvte does" attitude which is quite sensible: very few people use actual, physical terminals anymore, and the software ones are, well, are generally based on xterm or libvte (or that third library I keep forgetting). And when was the last time terminfo has been updated anyhow? Not to mention that it lacks info about modern features such as e.g. the version of Unicode used/supported by the terminal.
- zokier 2y ago> And when was the last time terminfo has been updated anyhow? Two weeks ago? https://lists.gnu.org/archive/html/bug-ncurses/2024-11/msg00000.html https://lists.gnu.org/archive/html/bug-ncurses/2024-11/msg00... > misc/terminfo.src | 40 ++++++++++++++++++++++++++++++-------
- binarybard 2y agoAmazing!! Love seeing these tools from charmbracelet! On a side note - VHS and mods have been super helpful to me.