read single characters from stdin
Jacob Carlborg
doob at me.com
Fri Sep 28 04:48:54 PDT 2012
On 2012-09-26 19:51, Thomas Koch wrote:
> Hi,
>
> to learn D, I'd like to write a simple type trainer. It should write a line
> to stdout and then read single characters from stdin and only accept the
> correct characters
>
> How can I read single characters?
>
> A similar question has been asked before without a working answer:
> http://forum.dlang.org/thread/jl79f7$2083$1@digitalmars.com
This works for me on Mac OS X:
http://forum.dlang.org/thread/jl79f7$2083$1@digitalmars.com?page=2#post-jlhn4d:241a5v:241:40digitalmars.com
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list