-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
108e1d7
commit a79f077
Showing
17 changed files
with
482 additions
and
590 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "console_engine" | ||
description = "A simple console framework that provides display and input features" | ||
version = "0.7.0" | ||
version = "1.0.0" | ||
authors = ["Vincent Foulon <[email protected]>"] | ||
repository = "https://github.com/VincentFoulon80/console_engine" | ||
readme = "README.md" | ||
|
@@ -12,10 +12,7 @@ edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
termion = "1.5.5" | ||
# for windows support, uncomment this : | ||
# termion = { git = "https://gitlab.redox-os.org/Jezza/termion", branch = "windows-support", package = "termion"} | ||
|
||
crossterm = "0.17.4" | ||
|
||
[dev-dependencies] | ||
rand = "0.7.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Removed Deprecations | ||
|
||
- `engine.scr_w()` : use `engine.get_width()` instead | ||
- `engine.scr_h()` : use `engine.get_height()` instead | ||
|
||
# From 0.7.x | ||
|
||
- Replace : | ||
```rust | ||
use console_engine::termion::color; | ||
use console_engine::termion::event::Key; | ||
use console_engine::termion::event::MouseButton; | ||
``` | ||
by : | ||
```rust | ||
use console_engine::Color; | ||
use console_engine::KeyCode; | ||
use console_engine::MouseButton; | ||
``` | ||
- in your code, `Key::Char('*')` becomes `KeyCode::Char('*')` | ||
- `color` becomes `Color`. | ||
Be aware that the Color enum has changed so instead of "Yellow" you have "DarkYellow", and "LightYellow" now is "Yellow". | ||
Black and White variants doesn't exist anymore because of the new "Grey" and "DarkGrey". | ||
- `engine.get_mouse_held()` and `engine.get_mouse_released()` now require that you provide a `MouseButton` as first parameter | ||
- `screen.to_string()` as well as `pixel.to_string()` no longer exists. | ||
If you want to print a screen you'll now use `screen.draw()` instead. | ||
- `pixel.colors` has been replaced by `pixel.fg` and `pixel.bg`. These two are now of type Color instead of String. | ||
|
||
# From 0.6.x or less | ||
|
||
- `print` and `print_fbg` now uses `&str` instead of `String` for text. | ||
If you want to keep using Strings, you'll just need to add `.as_str()` to get it to work again | ||
- `PubScreen` no longer exists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.