diff --git a/Cargo.toml b/Cargo.toml index 6d78154..4eb2934 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,4 +48,4 @@ features = [ version = "0.2" [target.'cfg(unix)'.dependencies] -nix = "0.28" +nix = { version = "0.29", features = ["process", "signal"] } diff --git a/src/repl.rs b/src/repl.rs index 45c78a2..66ed2e4 100644 --- a/src/repl.rs +++ b/src/repl.rs @@ -548,7 +548,7 @@ where // If `--instead-crlf` is true, change to "\r\n" if *flags.lock().unwrap().instead_crlf() && key == Key::Char('\r') { // Send carriage return - port.send(&[ b'\r', b'\n' ]); + port.send(b"\r\n"); continue; }