Get single keystroke?

Ali Çehreli acehreli at yahoo.com
Mon Mar 21 14:49:13 PDT 2011


On 03/21/2011 02:42 PM, bearophile wrote:
 > Lars Holowko:
 >
 >> what you want to do is OS dependent.
 >
 > But the need to get a keystroke is simple and not so uncommon, so I 
think Phobos needs a function to do that that works on both 
Windows/Linux (and Mac too).

If D sticks to the C (and C++) heritage, there is no guarantee that 
there is a keyboard around. The interface is stdin, stdout, and stderr; 
which are just character streams.

But I agree: some subset of ncurses would be nice when a keyboard is 
available.

 >
 > Bye,
 > bearophile

Ali



More information about the Digitalmars-d-learn mailing list