зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-04 06:45:50 +03:00
update tui to 0.19 and crossterm to 0.25
Этот коммит содержится в:
@@ -28,10 +28,10 @@ termion = ["dep:termion", "tui/termion"]
|
|||||||
search = ["dep:regex"]
|
search = ["dep:regex"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
crossterm = { version = "0.23", optional = true }
|
crossterm = { version = "0.25", optional = true }
|
||||||
regex = { version = "1", optional = true }
|
regex = { version = "1", optional = true }
|
||||||
termion = { version = "1.5", optional = true }
|
termion = { version = "1.5", optional = true }
|
||||||
tui = { version = "0.18", default-features = false }
|
tui = { version = "0.19", default-features = false }
|
||||||
arbitrary = { version = "1", features = ["derive"], optional = true }
|
arbitrary = { version = "1", features = ["derive"], optional = true }
|
||||||
|
|
||||||
[[example]]
|
[[example]]
|
||||||
|
|||||||
@@ -48,9 +48,9 @@ pub enum Key {
|
|||||||
/// let event = read().unwrap();
|
/// let event = read().unwrap();
|
||||||
///
|
///
|
||||||
/// // `Input::from` can convert backend-native event into `Input`
|
/// // `Input::from` can convert backend-native event into `Input`
|
||||||
/// let input = Input::from(event);
|
/// let input = Input::from(event.clone());
|
||||||
/// // or `Into::into`
|
/// // or `Into::into`
|
||||||
/// let input: Input = event.into();
|
/// let input: Input = event.clone().into();
|
||||||
/// // Conversion from `KeyEvent` value is also available
|
/// // Conversion from `KeyEvent` value is also available
|
||||||
/// if let Event::Key(key) = event {
|
/// if let Event::Key(key) = event {
|
||||||
/// let input = Input::from(key);
|
/// let input = Input::from(key);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user