Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Getting one char under windows

Moderators: larsivi kris

Posted: 01/09/11 12:52:56

Hi to all.

I am trying to get one char under windows system. Under linux I solved using "a script" called termios, but it does not work under windows.

I read that C uses a function called getch() that is under conio.h: is there a function like that for D? If not, is there some alternative solution?

Thanks to all.

Author Message

Posted: 01/16/11 19:54:19

yep, you can call getch() from D ... take a look at the C interface headers in Tango and you'll find getch() there