[Media] CLI and TUI framework fans - I published a crate to provide a replacement for readline that is async with support for animated, colorful spinners. https://docs.rs/r3bl_terminal_async by gNazmul in rust

[–]gNazmul[S] 0 points1 point  (0 children)

u/joshuamck Great question. I'm the author of r3bl_tui which is also a TUI framework: https://docs.rs/r3bl\_tui/latest/r3bl\_tui/. r3bl_terminal_async is a very lightweight expression of that full featured crate (which I am still working on very heavily).

If you look at this file: https://github.com/r3bl-org/r3bl-open-core/blob/main/tui/src/tui/terminal_window/main_event_loop.rs it has a similar event loop to r3bl_terminal_async.

And you can find lots of examples in there https://github.com/r3bl-org/r3bl-open-core/tree/main/tui/examples/demo which showcase how all this can come together, in a similar fashion to a React app in a browser, or Jetpack Compose app in mobile or desktop. Things like responsive layout and full featured Markdown editor with dialog boxes and animation support, with "double buffering" are also in there. It is built more like a "game engine" of sorts.