Cursive v0.11.0 Release Notes
Release Date: 2019-03-16 // about 5 years ago-
๐ฅ Breaking changes
Cursive::{ncurses, pancurses, termion}
now returnio::Result<Self>
instead of panicking.Cursive::default()
still unwraps.- Also added
Cursive::try_new
for failible backends.
- Also added
- Replaced
set_fps(i32)
withset_autorefresh(bool)
Finder::find_id()
is renamed tocall_on_id()
, and a properfind_id()
was added instead.- โก๏ธ Updated the Backend trait for a simpler input system
- โก๏ธ Updated to Rust 2018 edition (now requires rustc > 1.31)
Cursive::clear()
now takes&mut self
โก๏ธ API updates
- โ Add a logging implementation (
logger::init()
) and aDebugConsole
(cursive::toggle_debug_console()
) - โ Add user-data to Cursive.
Cursive::set_user_data()
can store some user-defined data structure.Cursive::user_data()
andCursive::with_user_data()
can be used to access the data.
- โ Add
StackView::remove_layer()
- โ Add
CircularFocus
view (and bring proper circular focus to dialogs) - โ Add
HideableView::is_visible()
- โ Add
type CbSink = Sender<Box<CbFunc>>
as an alias for the return type ofCursive::cb_sink()
- Add
LinearLayout::{insert_child, swap_children, set_weight}
for more in-place modifications. - Add
Printer::{cropped_centered,shrinked_centered}
๐ Improvements
- ๐ Updated termion backend to use direct /dev/tty access for improved performance.
- Enabled raw mode for ncurses and pancurses. Among other improvements, this lets applications receive Ctrl+S and Ctrl+Q events.
๐ Bugfixes
- ๐ Fixed overflow check for titles in
Dialog
andPanel