Skip to content

Releases: VincentFoulon80/console_engine

v2.6.1

10 Dec 15:46
0995265
Compare
Choose a tag to compare

🐞 Bugfixes

  • #26 Replace panic by returning an Error on init_fill when the terminal size cannot be returned by crossterm (Thanks to @r59q)

v2.6.0

06 Apr 19:08
d56ea01
Compare
Choose a tag to compare

🧰 Dependency Updates

  • Updating crossterm from 0.24 to 0.26 (Thanks to @lesleyrs)
    💥 Minor breaking: KeyEvent has now two additional properties: kind and state

🆕 Features

  • Added smooth_scroll example (windows only as of crossterm 0.26.1) (@lesleyrs)

🐞 Bugfixes

  • #22 is_key_released gets triggered when the key isn't being release (@lesleyrs)

2.5.1

17 Feb 22:23
5dd7d0e
Compare
Choose a tag to compare

🐞 Bugfixes

  • #15 Flush events on startup due to a bug where polling an event would show undesired resize events
  • #15 Addressed clippy warnings
  • #20 Fix snake game getting softlocked when hitting the leftmost boundary

2.5.0

08 Aug 17:59
55617eb
Compare
Choose a tag to compare

🧰 Dependency Updates

2.4.0

04 Jun 11:40
0b002eb
Compare
Choose a tag to compare

🆕 Features

  • New feature : form
    This feature allow the creation of forms that can handle multiple fields simultaneously, with optional validation of your choice
    (Thanks to @LoipesMas for reviewing the feature!)
  • Available Fields:
    • Text
    • HiddenText
    • Checkbox
    • Radio
  • Available Validation constraints:
    • NotBlank
    • IsTrue
    • Integer
    • Number
    • Alphabetic
    • Alphanumeric
    • Not
    • AnyOf
    • AllOf
    • Callback
    • CharactersCallback
  • Examples:
    • form-text : Example usage of a Text FormField (most basic use of a field)
    • form-simple : Example creation and usage of a Form containing two inputs
    • form-choices : Example usage of a Checkbox and Radio FormFields
    • form-validation : Example usage of Form Validation constraints
  • BorderStyle:
    • Added a new_solid function, that creates a border with only the block character from ascii
    • Added a with_colors on existing borders, that changes the foreground and background colors of the borders
  • Event:
    • Event now has the Debug, Clone and Copy trait

🐞 Bugfixes

  • Removed a trailing unwrap from Screen::draw()

2.3.0

06 Feb 13:46
Compare
Choose a tag to compare

🧰 Dependency Updates

  • Updated library to Edition 2021
  • Updating crossterm from 0.22 to 0.23

2.2.0

05 Nov 23:35
Compare
Choose a tag to compare

🧰 Dependency Updates

2.1.0

10 Oct 08:52
Compare
Choose a tag to compare

🆕 Additions

  • A new event feature is now available (don't forget to enable that feature first!):
    • engine.poll() will allow you to implement console_engine as an event system (see 'events' Example)
    • poll() can send you multiple kind of events:
      • Event::Frame: A frame has arrived, you should start drawing it (or not if you're not interested)
      • Event::Key(KeyEvent): A key has been pressed, use the KeyEvent to find out which key and which modifier (Ctrl, Shift, ...) has been pressed
      • Event::Mouse(MouseEvent): The mouse has moved, or clicked. Use the MouseEvent to find out what happened, at which position and if a modifier (Ctrl, Shift, ...) has been pressed as well
      • Event::Resize(u16, u16): The window has been resized. You can figure out the new size with its two parameters.
    • Note: While using poll(), unlike with wait_frame(), you'll have to figure out yourself if a key has been pressed, held or released.

🐞 Bugfixes

  • Fixed a bug when using some special characters that the unicode_width crate don't recognize, leading to a panic.

2.0.2

15 Sep 17:24
Compare
Choose a tag to compare

🧰 Dependency Updates

2.0.1

11 Jun 22:53
Compare
Choose a tag to compare

🆕 Additions

  • A new function rect_border() allow you to draw rectangles with styled border (useful for box-drawing symbols). (@LaineZ)
  • A new enum BorderStyle with some preset borders but also a new function to allow you to use any character you want to make borders (@LaineZ)
  • Example styled-rect to showcase the new rect_border (@LaineZ)

💥 Breaking Changes

  • Initialization of ConsoleEngine now returns a Result so he won't panic out of your control. Just add .unwrap() if you don't care.

🧰 Dependency Updates