Throbber widget of ratatui
NOTE: If you want to use tui-rs instead of ratatui, please use 0.4.1 or older version.
throbber-widgets-tui
is a ratatui widget that displays throbber.
A throbber may also be called:
- activity indicator
- indeterminate progress bar
- loading icon
- spinner
- ぐるぐる(guru guru)
Demo
The demo shown in the gif can be run with all available symbols.
Features
- Render throbber
- With label
- Random or specified step, also negative is possible.
Getting Started
MSRV: throbber-widgets-tui
requires rustc 1.74.0 or newer.
Example code:
// :
// :
// :
// :
Apps using throbber-widgets-tui
- mntime: Execute "m" commands "n" times to calculate mean of usage time and memory. As an alternative to "time", "gnu-time" is used internally.
Dependencies (By default)
Direct dependencies crates:
|
License | crate |
---|---|
Apache-2.0 OR MIT (1) | rand |
MIT (1) | ratatui |
Zlib (1) | throbber-widgets-tui |
Chain dependencies crates:
|
License | crate |
---|---|
(MIT OR Apache-2.0) AND Unicode-DFS-2016 (1) | unicode-ident |
Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT (3) | linux-raw-sys, rustix, wasi |
Apache-2.0 OR BSD-2-Clause OR MIT (2) | zerocopy, zerocopy-derive |
Apache-2.0 OR BSL-1.0 (1) | ryu |
Apache-2.0 OR MIT (50) | ahash, allocator-api2, bitflags, cassowary, cfg-if, either, errno, getrandom, hashbrown, heck, hermit-abi, itertools, itoa, libc, lock_api, log, once_cell, parking_lot, parking_lot_core, paste, ppv-lite86, proc-macro2, quote, rand, rand_chacha, rand_core, rustversion, scopeguard, signal-hook, signal-hook-mio, signal-hook-registry, smallvec, static_assertions, syn, unicode-segmentation, unicode-truncate, unicode-width, winapi, winapi-i686-pc-windows-gnu, winapi-x86_64-pc-windows-gnu, windows-sys, windows-targets, windows_aarch64_gnullvm, windows_aarch64_msvc, windows_i686_gnu, windows_i686_gnullvm, windows_i686_msvc, windows_x86_64_gnu, windows_x86_64_gnullvm, windows_x86_64_msvc |
MIT (11) | castaway, compact_str, crossterm, crossterm_winapi, instability, lru, mio, ratatui, redox_syscall, strum, strum_macros |
MIT OR Unlicense (1) | byteorder |
Zlib (1) | throbber-widgets-tui |
License
This repository's license is zlib. Please feel free to use this, but no warranty.