Thread overview
Capture characters from standard input without waiting for enter to be pressed
Sep 25, 2015
Martino
Sep 25, 2015
Ali Çehreli
September 25, 2015
As subject, I'm trying to read from stdin without waiting for enter to be pressed.

How can I do?
September 25, 2015
On 9/25/15 12:04 PM, Martino wrote:
>
> As subject, I'm trying to read from stdin without waiting for enter to
> be pressed.
>
> How can I do?

That is an issue with your terminal. You need to use a terminal configuration library to set it up to not buffer keystrokes until enter is pressed. I would not be the one to help you, the last time I did terminal control was about 20 years ago, but it probably hasn't changed much.

And it's highly dependent on your environment.

-Steve
September 25, 2015
On 09/25/2015 09:04 AM, Martino wrote:
>
> As subject, I'm trying to read from stdin without waiting for enter to
> be pressed.
>
> How can I do?

One solution:


http://forum.dlang.org/post/mailman.2665.1300747084.4748.digitalmars-d-learn@puremagic.com

Ali