www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Capture characters from standard input without waiting for enter to be

reply Martino <mserri gmail.com> writes:
As subject, I'm trying to read from stdin without waiting for 
enter to be pressed.

How can I do?
Sep 25 2015
next sibling parent Steven Schveighoffer <schveiguy yahoo.com> writes:
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
Sep 25 2015
prev sibling parent =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
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
Sep 25 2015