Using the Emacs mode for Cargo, I'm able to build and run Rust code inside Emacs. However, the terminal that opens when executing cargo-process-run
does not accept user input.
For example, when running
use std::io;
fn main() {
let mut input = String::new();
io::stdin()
.read_line(&mut input)
.expect("Failed to read line.");
}
the terminal will hang without being capable of receiving keyboard input.
I've read that a similar problem can occur when executing compile
, but this could somehow be resolved by starting in comint-mode
. Unfortunately, I have not found a way to translate that solution to this scenario.
How can I resolve this?