How do I read one character from stdin? (getc in C)

Fer22f via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Nov 14 13:45:06 PST 2015


On Saturday, 14 November 2015 at 13:53:50 UTC, BBaz wrote:
>     stdin.readf("%c", &c);
>     writeln(c);

Nope. In *nix this works? In Windows I still need to hit enter, 
and the character is the first one of the line I entered.


More information about the Digitalmars-d-learn mailing list