ccbrown / iocraft

A Rust crate for beautiful, artisanally crafted CLIs, TUIs, and text-based IO.
https://crates.io/crates/iocraft
Apache License 2.0
339 stars 5 forks source link

Add more examples #13

Open ccbrown opened 1 month ago

ccbrown commented 1 month ago

We can always use more examples!

For inspiration, Ratatui has a lot of great examples. It might be good to port some of them.

orhun commented 1 month ago

Great stuff! We can also draw some inspiration from iocraft examples/API as well :)

ccbrown commented 1 month ago

Unfortunately my first experience attempting to actually run the Ratatui examples didn't go too well. 😕

https://github.com/ratatui/ratatui/issues/1387

ccbrown commented 1 month ago

Textual also has some really impressive examples. They almost make you forget you're looking at a terminal. And they work flawlessly in macOS's Terminal.app, which I consider a requirement for examples. After all, a well crafted TUI should look beautiful everywhere!

~When I implement https://github.com/ccbrown/iocraft/issues/17 I'll likely add an example or two in the style of Textual.~

Edit: That's done and we now have a nice looking calculator in the style of Textual's:

calculator