Features
- Add option to
widgets::List
to repeat the hightlight symbol for each line of multi-line items (#533). - Add option to control the alignment of
Axis
labels in theChart
widget (#568).
Breaking changes
- The minimum supported rust version is now
1.56.1
.
New default backend and consolidated backend options (#553)
crossterm
is now the default backend.
If you are already using thecrossterm
backend, you can simplify your dependency specification inCargo.toml
:
- tui = { version = "0.16", default-features = false, features = ["crossterm"] }
+ tui = "0.17"
If you are using the termion
backend, your Cargo
is now a bit more verbose:
- tui = "0.16"
+ tui = { version = "0.17", default-features = false, features = ["termion"] }
crossterm
has also been bumped to version 0.22
.
Because of their apparent low usage, curses
and rustbox
backends have been removed.
If you are using one of them, you can import their last implementation in your own project:
Canvas labels (#543)
- Labels of the
Canvas
widget are nowtext::Spans
.
The signature ofwidgets::canvas::Context::print
has thus been updated:
- ctx.print(x, y, "Some text", Color::Yellow);
+ ctx.print(x, y, Span::styled("Some text", Style::default().fg(Color::Yellow)))