v0.17.0
Features
- Add option to
widgets::Listto repeat the hightlight symbol for each line of multi-line items (#533). - Add option to control the alignment of
Axislabels in theChartwidget (#568).
Breaking changes
- The minimum supported rust version is now
1.56.1.
New default backend and consolidated backend options (#553)
crosstermis now the default backend. If you are already using thecrosstermbackend, 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
Canvaswidget are nowtext::Spans. The signature ofwidgets::canvas::Context::printhas thus been updated:
- ctx.print(x, y, "Some text", Color::Yellow);
+ ctx.print(x, y, Span::styled("Some text", Style::default().fg(Color::Yellow)))