Single char input in D

Anders F Björklund afb at algonet.se
Fri Mar 3 04:47:00 PST 2006


Bob W wrote:

> Tell me any major C compiler NOT featuring getch() or _getch().
> It simply is a necessity having it as part of a C library. Therefore
> it is widely available and it does not matter at all whether it is
> standardized or not.

Mac OS X only has "getchar"... "getch" is in (the bundled) ncurses.h
Of course, to use that you need to link to the libncurses.dylib too.

--anders



More information about the Digitalmars-d mailing list