4 releases (2 breaking)

0.3.0-prerelease2 Aug 6, 2024
0.2.0 Jun 28, 2024
0.1.0 Jun 24, 2024

#786 in Command-line interface

Download history 203/week @ 2024-08-06 2/week @ 2024-08-13 4/week @ 2024-09-10 2/week @ 2024-09-17 2/week @ 2024-09-24 10/week @ 2024-10-01

187 downloads per month

MIT license

16KB
354 lines

TermKit

A simple terminal widget kit made in Rust.

Features

Using crossterm for terminal manipulation, TermKit gives you drop-in widgets for your CLI or terminal applications.

Widgets Available

  • infobox: A simple infobox widget that displays a message in the terminal.
    • Color Customization
    • padding
    • Linux + Windows + Mac
  • listselector: A list selector widget that allows you to select an item from a list.
    • Color Customization
    • Linux
    • Mac
    • Windows
  • progressbar: A progress bar widget that displays a progress bar in the terminal.
    • Color Customization
    • Linux + Windows + Mac
  • spinner: A spinner widget that displays a spinner in the terminal.
    • Color Customization
    • Linux + Windows + Mac
  • meter: A meter that displays quantative and changing data in the terminal.
    • Color Customization
    • Linux + Windows + Mac
  • table: A table widget that displays a table in the terminal.
  • textinput: A text input widget that allows you to input text in the terminal.
  • alert: An alert widget that displays an alert in the terminal.
  • confirm: A confirm widget that displays a confirmation dialog in the terminal.
  • prompt: A prompt widget that displays a prompt in the terminal.

and more per request

Usage

Add this to your Cargo.toml:

[dependencies]
term-kit = "*"

and refer to the examples for usage.

License

Licensed under the MIT license.

Dependencies

~2.2–7MB
~42K SLoC