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