diff --git a/Cargo.lock b/Cargo.lock index 65425ee..1698067 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -189,31 +189,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "crossterm" -version = "0.25.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e64e6c0fbe2c17357405f7c758c1ef960fce08bdfb2c03d88d2a18d7e09c4b67" -dependencies = [ - "bitflags", - "crossterm_winapi", - "libc", - "mio", - "parking_lot", - "signal-hook", - "signal-hook-mio", - "winapi", -] - -[[package]] -name = "crossterm_winapi" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ae1b35a484aa10e07fe0638d02301c5ad24de82d310ccbd2f3693da5f09bf1c" -dependencies = [ - "winapi", -] - [[package]] name = "crypto-common" version = "0.1.6" @@ -602,10 +577,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f3a94f0659efe59329832ba0452d3ec753145fc1fb12a8e1d60de4ccf99f5364" dependencies = [ "bitflags", - "crossterm", "dyn-clone", "lazy_static", "newline-converter", + "termion", "thiserror", "unicode-segmentation", "unicode-width", @@ -668,7 +643,7 @@ checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" [[package]] name = "libprotonup" -version = "0.4.0" +version = "0.4.1" dependencies = [ "actix-rt", "anyhow", @@ -780,6 +755,12 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" +[[package]] +name = "numtoa" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8f8bdf33df195859076e54ab11ee78a1b208382d3a26ec40d142ffc1ecc49ef" + [[package]] name = "once_cell" version = "1.17.1" @@ -907,6 +888,15 @@ dependencies = [ "bitflags", ] +[[package]] +name = "redox_termios" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8440d8acb4fd3d277125b4bd01a6f38aee8d814b3b5fc09b3f2b825d37d3fe8f" +dependencies = [ + "redox_syscall", +] + [[package]] name = "redox_users" version = "0.4.3" @@ -1085,27 +1075,6 @@ dependencies = [ "digest", ] -[[package]] -name = "signal-hook" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "732768f1176d21d09e076c23a93123d40bba92d50c4058da34d45c8de8e682b9" -dependencies = [ - "libc", - "signal-hook-registry", -] - -[[package]] -name = "signal-hook-mio" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29ad2e15f37ec9a6cc544097b78a1ec90001e9f71b81338ca39f430adaca99af" -dependencies = [ - "libc", - "mio", - "signal-hook", -] - [[package]] name = "signal-hook-registry" version = "1.4.1" @@ -1213,6 +1182,18 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "termion" +version = "1.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "077185e2eac69c3f8379a4298e1e07cd36beb962290d4a51199acf0fdc10607e" +dependencies = [ + "libc", + "numtoa", + "redox_syscall", + "redox_termios", +] + [[package]] name = "textwrap" version = "0.11.0" diff --git a/libprotonup/Cargo.toml b/libprotonup/Cargo.toml index 2f05a9d..de3f0b7 100644 --- a/libprotonup/Cargo.toml +++ b/libprotonup/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libprotonup" -version = "0.4.0" +version = "0.4.1" edition = "2021" authors = ["Auyer "] repository = "https://github.com/auyer/protonup-rs" diff --git a/protonup-rs/Cargo.toml b/protonup-rs/Cargo.toml index 3fd5db6..4ba39d5 100644 --- a/protonup-rs/Cargo.toml +++ b/protonup-rs/Cargo.toml @@ -12,7 +12,7 @@ description = "TUI Program for Custom Proton Download and installation written i [dependencies] libprotonup = { path = "../libprotonup" } -inquire = "0.5" +inquire = { version = "0.5", default-features = false, features = ["termion"] } indicatif = { version = "0.17", features = [ "improved_unicode", "unicode-segmentation", diff --git a/protonup-rs/src/main.rs b/protonup-rs/src/main.rs index 4b23f12..2be29d8 100644 --- a/protonup-rs/src/main.rs +++ b/protonup-rs/src/main.rs @@ -185,6 +185,7 @@ async fn main() { } let answer: Menu = Select::new("ProtonUp Menu: Chose your action:", Menu::VARIANTS.to_vec()) + .with_page_size(9) .prompt() .unwrap_or_else(|_| std::process::exit(0));