Commit Graph

544 Commits (master)
 

Author SHA1 Message Date
Florian Dehau 335f5a4563
Update README.md 9 months ago
davidhelbig fafad6c961
chore: fix typo in layout.rs (#619) 2 years ago
Florian Dehau a4de409235 chore: add apps using `tui` 2 years ago
Florian Dehau a05fd45959 Release v0.19.0 2 years ago
Florian Dehau 24de2f8a96 chore: bump crossterm to v0.25 2 years ago
Florian Dehau eee37011a5 chore: fix clippy warnings 2 years ago
Florian Dehau a67706bea0 chore(ci): bump cargo-make to v0.35.16 2 years ago
Linda_pp faa69b6cfe chore: explicitly set MSRV to 1.56.1 in Cargo.toml 2 years ago
Florian Dehau ba5ea2deff
chore: update README 2 years ago
♫ Christian Krause ♫ a6b25a4877
chore: add panic hook example (#593)
Without a terminal-resetting panic hook there are two main problems when
an application panics:

1.  The report of the panic is distorted because the terminal has not
    properly left the alternate screen and is still in raw mode.

2.  The terminal needs to be manually reset with the `reset` command.

To avoid this, the standard panic hook can be extended to first reset
the terminal.
2 years ago
Florian Dehau 90d8cb6526 chore: add more apps using `tui` to the README 2 years ago
Florian Dehau e71faa988e Release v0.18.0 2 years ago
Atk ed0ae81aae
chore: update crossterm to v0.23 (#598) 2 years ago
David a61b078dea
chore: fix clippy warning (#601) 2 years ago
Florian Dehau 85939306e3 Release v0.17.0 2 years ago
Florian Dehau cf2d9c2c1d feat!: bump MSRV to 1.56.1 and migrate to edition 2021 2 years ago
theogilbert 853d9047b0
feat(widgets/chart): add option to control alignment of axis labels (#568)
* feat(chart): allow custom alignment of first X-Axis label

* refactor(chart): rename ambiguous function parameter

* feat(chart): allow custom alignment of Y-Axis labels

* refactor(chart): refactor axis test cases

* refactor(chart): rename minor variable

* fix(chart): force centered x-axis label near Y-Axis

* fix(chart): fix subtract overflow on small rendering area

* refactor(chart): rename alignment property

* refactor(chart): merge two nested conditions

* refactor(chart): decompose x labels rendering loop
2 years ago
Florian Dehau 6069d89dee chore: fix all clippy warnings 2 years ago
Florian Dehau d25e263b8e chore: enable clippy on all targets 2 years ago
ljedrz d05e696d45
chore: fix optional attribute for `serde` feature (#571)
Signed-off-by: ljedrz <ljedrz@gmail.com>
2 years ago
Petr Portnov ef583cead9 chore(examples): remove unused `demo/util.rs`
This module is unused and is not imported by any other module.
2 years ago
Denis 90c4da4e68 Update README.md 2 years ago
Florian Dehau 8032191366 chore: fix table example
Third column in table example was using the `Max` constraint.

But since version 0.16, the layout system does not add a hidden constraint on the last column which would ensure that it fills the remaining available space (a change that was already mentioned in #525). In addition, `tui` does not support sizing based on content because of its immediate mode nature. Therefore, `Max` is now resolved to `0`. Replacing with `Min` fixes the issue.

A new way of specifying constraints is being worked on at #519 which should for more deterministic and advanced layout.
2 years ago
Florian Dehau c8c03294e1 chore: self contained examples 2 years ago
wcampbell e00df22588
chore: add `adsb_deku/radar` to apps using `tui` (#555)
My `adsb_deku/radar` application uses tui, using the Table and Canvas to show
information and plot airplanes on a latitude/longitude coordinates map.

Signed-off-by: wcampbell <wcampbell1995@gmail.com>
2 years ago
Florian Dehau 9806217a6a feat!: use crossterm as default backend 3 years ago
Florian Dehau 1be5cf2d90 chore: add `joshuto` to the apps using `tui` 3 years ago
Florian Dehau ca68bae4ed feat!(widgets/canvas): use spans for text of labels 3 years ago
Florian Dehau 8c1f58079f chore: fix build 3 years ago
Antoine Büsch 4845c03eec
feat(widgets/list): repeat highlight symbol on multi-line items (#533)
When this option is true, the hightlight symbol is repeated for each
line of the selected item, instead of just the first line.
3 years ago
Florian Dehau 532a595c41 chore: pin bitflags version to 1.3 3 years ago
Antoine Büsch 25ce5bc90b
chore: bump the minimum supported Rust version to 1.52.1 (#534)
- `const_fn` usage in the `bitflags` crate.
- `unsafe_op_in_unsafe_fn` lint usage in `rust_info` despite pinned `cargo-make` version.
3 years ago
JerzySpendel 80a929ccc6
chore: fix typo (#513) 3 years ago
Christian Visintin 3797863e14
chore: add termscp to list of apps using tui (#510) 3 years ago
Florian Dehau 7870793b4b Release v0.16.0 3 years ago
Florian Dehau a7c21a9729 fix(widgets): avoid offset panic in `Table` and `List` when input changes 3 years ago
Florian Dehau 914d54e672 chore: bump crossterm to 0.20 3 years ago
Florian Dehau a68e38e59e fix(table): use `Layout` in table column widths computation 3 years ago
Florian Dehau e870e5d8a5 feat(layout): add private option to control last chunk expansion 3 years ago
Deepu K Sasidharan 29387e785c Add battleship.rs 3 years ago
Florian Dehau 8eb6336f5e refactor(widgets): remove iter::repeat for blank symbols 3 years ago
Florian Dehau 34a2be6458 fix(widgets/chart): remove panics with long axis labels 3 years ago
Florian Dehau fbd834469f doc(widgets/clear): clarify usage of clear 3 years ago
Florian Dehau 8da5f740af refactor(examples): show more use case in gauge example 3 years ago
Florian Dehau 38dcddb126 fix(widgets/gauge): apply label style and avoid overflow on large labels 3 years ago
Phillip Cloud 92948d2394 chore: add minesweep to list of apps using tui-rs 3 years ago
orhun a3a0a80a02 docs: add gpg-tui to the "apps using tui" list 3 years ago
jmrgibson a5f7019b2a
doc: fix minor grammatical errors (#489)
A missing "and" after "an" (which I do all the time) and some tense clarification.
3 years ago
Moritz e05b80cec1
doc: fix typos in comments. (#486) 3 years ago
Florian Dehau 23d5fbde56 refactor(examples): remove exit key from Events handler
The thread spawned by `Events` to listen for keyboard inputs had knowlegde of
the exit key to exit on its own when it was pressed. It is however a source of
confusion (#491) because the exit behavior is wired in both the event handler
and the input handling performed by the app. In addition, this is not needed as
the thread will exit anyway when the main thread finishes as it is already the
case for the "tick" thread. Therefore, this commit removes both the option to
configure the exit key in the `Events` handler and the option to temporarily
ignore it.
3 years ago