Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

terminal: TUI library #151

Closed
wants to merge 18 commits into from
Closed

Conversation

erak
Copy link
Contributor

@erak erak commented Jun 21, 2022

Description

This adds a TUI library based on tui-rs that comes with:

  • generic key-value store for application properties
  • common widgets and support for application specific ones
  • separate render and event thread
  • stacked, multi-page layout
  • 2 predefined theme(s): default and with borders
  • example application(s):
    • basic: example/tui.rs
    • custom widget: example/tui_widget.rs
    • re-run after internal call: example/tui_internal_call.rs

Examples

Screenshot from 2022-06-21 16-58-30
Screenshot from 2022-06-21 16-58-08

@erak erak requested a review from cloudhead as a code owner June 21, 2022 15:42
@erak erak mentioned this pull request Jun 21, 2022
@cloudhead
Copy link
Contributor

Would it make sense to maybe split the TUI functionality in its own crate? Eg. radicle-terminal-tui, which can depend on radicle-terminal. We're already struggling with build times, so it would help if this didn't add overhead to all existing crates.

@erak
Copy link
Contributor Author

erak commented Jul 1, 2022

Yes, absolutely! Will take care of this.

@erak
Copy link
Contributor Author

erak commented Aug 16, 2022

Closing this now in favor of #171.

@erak erak closed this Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants