Hacker News new | ask | show | jobs
by username3 660 days ago
Are there any terminal UI frameworks for the web? I want to create web apps that only use keyboard shortcuts.
1 comments

Not exactly what you're looking for, but there's Shell in a Box (see https://github.com/shellinabox/shellinabox), that can create a terminal on a web page, and expose an actual terminal application running on a server.

One thing that is certainly doable is also to use a standard TUI framework in another language (there are many of them, e.g. https://github.com/magiblot/tvision for C++, https://github.com/charmbracelet/bubbletea for Go, etc.), compile it to WASM, and find how to bridge the WASM output to the browser (I've seen this: https://github.com/cryptool-org/wasm-webterm, but never tried it).

Shellinabox doesn’t seem to have a lot of development. Try ttyd instead

https://github.com/tsl0922/ttyd

Looks nice, thanks for sharing!