| Thread overview | |||||
|---|---|---|---|---|---|
|
September 25, 2015 Capture characters from standard input without waiting for enter to be pressed | ||||
|---|---|---|---|---|
| ||||
As subject, I'm trying to read from stdin without waiting for enter to be pressed. How can I do? | ||||
September 25, 2015 Re: Capture characters from standard input without waiting for enter to be pressed | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Martino | 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 Re: Capture characters from standard input without waiting for enter to be pressed | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Martino | 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 | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply