I believe the Unix & similar way to do this is "CBREAK mode" on the terminal/tty device, but under Windows there is a totally different mechanism. I do not believe the Nim stdlib abstracts over these possibilities.
So, sorry to answer your question with a question, but I believe the answer to your question depends on if you are you willing to have this work on a subset of operating systems, and if so which subset?
