diff --git a/Cargo.lock b/Cargo.lock index eb4f1770..e887b40d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1454,14 +1454,14 @@ dependencies = [ [[package]] name = "termion" -version = "1.5.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c22cec9d8978d906be5ac94bceb5a010d885c626c4c8855721a4dbd20e3ac905" +version = "1.6.0" +source = "git+https://gitlab.com/TheLostLambda/termion.git#70159e07c59c02dc681db3b38dea16c295610ffa" dependencies = [ "libc", "numtoa", "redox_syscall", "redox_termios", + "serde", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 9103a685..a231a45b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ serde_yaml = "0.8" signal-hook = "0.1.10" strip-ansi-escapes = "0.1.0" structopt = "0.3" -termion = "1.5.5" +termion = { git = "https://gitlab.com/TheLostLambda/termion.git", features = ["serde"] } termios = "0.3" unicode-truncate = "0.1.1" unicode-width = "0.1.8" @@ -32,3 +32,6 @@ features = ["unstable"] [dev-dependencies] insta = "0.16.1" + +[profile.release] +lto = true \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 0b0c853d..a0ee4f91 100644 --- a/src/main.rs +++ b/src/main.rs @@ -469,7 +469,7 @@ pub fn start(mut os_input: Box, opts: Opt) { let handle_key = instance.exports.get_function("handle_key").unwrap(); for key in input_bytes.keys() { if let Ok(key) = key { - dbg!(key); + dbg!(serde_json::to_string(&key)); } } }