Skip to content

Releases: gyscos/cursive

0.7.0

13 Oct 23:17
Compare
Choose a tag to compare
  • 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

13 Oct 23:12
Compare
Choose a tag to compare
  • Fixed a bad assert

0.6.3

14 Aug 23:43
Compare
Choose a tag to compare
  • 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).

0.6.2

03 Aug 18:24
Compare
Choose a tag to compare
  • Fix possible panic with LinesIterator (#147).

0.6.1

20 Jul 18:00
Compare
Choose a tag to compare
  • 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

04 Jul 04:44
Compare
Choose a tag to compare
  • 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

16 May 02:35
Compare
Choose a tag to compare
  • 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

29 Mar 02:12
Compare
Choose a tag to compare
  • 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

09 Feb 00:20
Compare
Choose a tag to compare
  • 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

24 Jan 07:02
Compare
Choose a tag to compare
  • 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