tui-rs v0.5.0 Release Notes
Release Date: 2019-03-10 // about 5 years ago-
๐ Features
- โ Add a new curses backend (with Windows support thanks to
pancurses
). - Add
Backend::get_cursor
andBackend::set_cursor
methods to query and set the position of the cursor. - โ Add more constructors to the
Crossterm
backend. - โ Add a demo for all backends using a shared UI and application state.
- โ Add
Ratio
as a new variant of layoutConstraint
. It can be used to define exact ratios constraints.
๐ฅ Breaking Changes
- โ Add support for multiple modifiers on the same
Style
by changingModifier
from an enum to a bitflags struct.
So instead of writing:
let style = Style::default().add_modifier(Modifier::Italic);
one should use:
let style = Style::default().add_modifier(Modifier::ITALIC); // or let style = Style::default().add_modifier(Modifier::ITALIC | Modifier::BOLD);
๐ Bug Fixes
- Ensure correct behavoir of the alternate screens with the
Crossterm
backend. - ๐ Fix out of bounds panic when two
Buffer
are merged.
- โ Add a new curses backend (with Windows support thanks to