3 ms·
Tuish – TUI toolkit in pure portable shell script (bash/zsh/busybox/ksh/mksh)
- gaigalas 7mo agoHi (author here)! Small TUI toolkit. This is an evolution of an old experiment: https://news.ycombinator.com/item?id=19517992 https://news.ycombinator.com/item?id=19517992 In the examples, there is a full text editor interface written in nothing but shell and other cool tricks (correct-width terminal tables, box drawing). Would love some feedback. I tested only on a few selected terminals (WezTerm, VSCode terminal, Windows Terminal), but it should work on a bunch more.
- ifh-hn 7mo agoThis looks good but because I'm dumb I need pictures to appreciate it better. I had a quick look, are there any example pictures. Well done one implementing it in pure shell, lots of gotchas to avoid!
- gaigalas 7mo agoThere are pictures in the repo :D Drawing is a small module though, what tuish does best is terminal compositing. It avoids tricks like cursor parking, which makes it fundamentally different from other TUIs internally. That's why we can render an editor in a partial viewport (non-full screen). Also, no dependencies to install or compilation steps, just clone and run.