Settings

Theme

Tuish – TUI toolkit in pure portable shell script (bash/zsh/busybox/ksh/mksh)

github.com

6 points by gaigalas 4 days ago · 3 comments

Reader

gaigalasOP 4 days ago

Hi (author here)!

Small TUI toolkit. This is an evolution of an old experiment: 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 4 days ago

This 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!

  • gaigalasOP 4 days ago

    There 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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection