Cursive Versions Save

A Text User Interface library for the Rust programming language

0.7.0

6 years ago
  • Adds mouse support (except pancurses backend for now)
  • Adds a ViewWrapper implementation (and therefore an automatic View implementation) for any type that implements DerefMut<Target: View> - this means View is automatically implemented for &mut View, Box<View> ...
  • Adds Canvas::wrap(View): this allow to wrap a view and easily override some of its methods.
  • Fixes some modifiers detection in ncurses backend

0.6.4

6 years ago
  • Fixed a bad assert

0.6.3

6 years ago
  • Added methods:
    • XY<usize>::saturating_sub()
    • XY<usize>::checked_sub()
    • XY<usize>::signed(self) -> XY<isize>
    • XY<O: Ord>::fits as a reverse of XY<O: Ord>::fits_in.
  • Fixes some unchecked subtraction (they could cause panics in some cases).
    • Fixed #148 .

0.6.2

6 years ago
  • Fix possible panic with LinesIterator (#147).

0.6.1

6 years ago
  • Add Color::TerminalDefault and ColorStyle::TerminalDefault, to use the terminal's default colors (background and font color used outside of cursive).
  • Fix a scroll bug with some TextAreas.

0.6.0

6 years ago
  • Breaking change: Rename KeyEventView to OnEventView
  • Fix possible panic when using Cursive::find_id (#114).
  • Add ColorStyle::Custom to allow use of colors outside of palette.
  • Add Button::set_callback
  • Add methods to access ListView's children
  • Fix locale issue with ncurses
  • Enable multiple successive calls to Cursive::run (for multiple event loop segments)

0.5.1

7 years ago
  • Explicitly call odds::vec::VecExt::splice
    • Fix compilation for rust 1.17
  • Add auto-sizing to TextArea
  • Allow colored EditView with EditView::set_style
  • Termion: use alternate screen to return the screen to normal after exiting the application

0.5.0

7 years ago
  • Refactored view indexing:
    • Cursive::find_id now returns a ViewRef, which provides DerefMut but isn't tied to the lifetime of the Cursive root, allowing more natural access.
    • Added Cursive::call_on_id which takes a closure to run on the target view.
  • Add mutable on_edit callback to EditView
  • event::Event::Unknown now carries the unknown bytes rather than an integer.
  • event::Event is therefore no longer Copy
  • Add Cursive::focus_id to move the focus to the target view.
  • Bugfixes

0.4.1

7 years ago
  • Rename features to *-backend
    • This helps fix building on Windows platform
  • Renamed utils::prefix_length -> utils::prefix (and also return the width)

0.4.0

7 years ago
  • Add Canvas view
  • Made TextView easier to use when appending content
    • Added TextView::append_content()
    • Added ScrollStrategy to control scroll behavior on content change.
  • Made Menubar easier to use with dynamic content
    • Added methods to clear and edit menu trees
  • Add "real" fullscreen views to StackView
  • Rename View::get_min_size -> View::required_size
  • Fix off-by-1 error in termion backend