Read rust stdin in raw mode

Hi, I want to make a rust program that reads stdin character by character without pressing enter, use the command "stty raw" to use the raw mode of the terminal, this should send the characters without having to press enter, but I can't get rust to read the characters, could you help me find a solution? I would love to make it from scratch so I wouldn't want to use a rust crate.

You'd probably re-open stdin instead of using any rust-given stdin. Let's say you started from File::open("/dev/stdin") and read one byte at a time, I think it would work fine. What was it that didn't work?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.