mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-10 07:04:17 +00:00
Release v0.5.0
This commit is contained in:
parent
f8b3526426
commit
e0ab1e906e
2 changed files with 38 additions and 2 deletions
36
CHANGELOG.md
36
CHANGELOG.md
|
@ -2,6 +2,42 @@
|
||||||
|
|
||||||
## To be released
|
## To be released
|
||||||
|
|
||||||
|
## v0.5.0 - 2019-03-10
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
* Add a new curses backend (with Windows support thanks to `pancurses`).
|
||||||
|
* Add `Backend::get_cursor` and `Backend::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 layout `Constraint`. It can be used to define
|
||||||
|
exact ratios constraints.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* Add support for multiple modifiers on the same `Style` by changing `Modifier`
|
||||||
|
from an enum to a bitflags struct.
|
||||||
|
|
||||||
|
So instead of writing:
|
||||||
|
|
||||||
|
```rust
|
||||||
|
let style = Style::default().modifier(Modifier::Italic);
|
||||||
|
```
|
||||||
|
|
||||||
|
one should use:
|
||||||
|
|
||||||
|
```rust
|
||||||
|
let style = Style::default().modifier(Modifier::ITALIC);
|
||||||
|
// or
|
||||||
|
let style = Style::default().modifier(Modifier::ITALIC | Modifier::BOLD);
|
||||||
|
```
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Ensure correct behavoir of the alternate screens with the `Crossterm` backend.
|
||||||
|
* Fix out of bounds panic when two `Buffer` are merged.
|
||||||
|
|
||||||
## v0.4.0 - 2019-02-03
|
## v0.4.0 - 2019-02-03
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "tui"
|
name = "tui"
|
||||||
version = "0.4.0"
|
version = "0.5.0"
|
||||||
authors = ["Florian Dehau <work@fdehau.com>"]
|
authors = ["Florian Dehau <work@fdehau.com>"]
|
||||||
description = """
|
description = """
|
||||||
A library to build rich terminal user interfaces or dashboards
|
A library to build rich terminal user interfaces or dashboards
|
||||||
|
@ -58,4 +58,4 @@ required-features = ["crossterm"]
|
||||||
[[example]]
|
[[example]]
|
||||||
name = "curses_demo"
|
name = "curses_demo"
|
||||||
path = "examples/curses_demo.rs"
|
path = "examples/curses_demo.rs"
|
||||||
required-features = ["curses"]
|
required-features = ["curses"]
|
||||||
|
|
Loading…
Reference in a new issue