Email or username:

Password:

Forgot your password?
muesli

We released gum yesterday, which lets you enhance your shell scripts with a user-friendly TUI, complete with dialogs, prompts, lists, and selections.

if you're into scripting or crafting immensely powerful shell one-liners, you should honestly check out the README, there are a ton of amazing examples:

github.com/charmbracelet/gum

18 comments
muesli

@zens

gum itself is merely a terminal/cli app and as such it's as good as the terminal it's being run in.

Luci Paper

@fribbledom tuis tend to cause problems with screen readers regardless of which terminal they’re in

muesli

@zens

That's sad to hear, but something that needs to be fixed in the terminal software itself.

On the bright side, you can disable styling & colors in gum's output. I would suggest setting your TERM and COLORTERM env vars accordingly and it should behave correctly.

Luci Paper

@fribbledom it literally cannot be fixed in the terminal software. it’s like when screen readers try to read out blocks of emoji or ascii art. you can’t expect them to guess what your ascii art represents.

Luci Paper

@fribbledom but the particular problem tui causes is that they redraw what’s already on the screens and screen reader software doesn’t pick up on redraws.

to make it accessible i recommend testing with actual screen reader software and consider a mode that does repl interaction, with plain english descriptions instead of ascii art.

Spring Breakdown :jo:

@fribbledom *ponders the text adventures that could be created with this* :thinkhappy:

hazelnot :yell:

@Jo @fribbledom Damn now I wanna make a text adventure with this :eyethink:

...how do I do that

Go Up