I read this [article](http://smartprogrammer.blogspot.com/2006/04/15-exercises-for-learning-new.html) and try to do the exercise in D Programming Language, but encounter a problem in the first exercise.

> 
> (1) Display series of numbers
>  (1,2,3,4, 5....etc) in an infinite
>  loop. The program should quit if
>  someone hits a specific key (Say
>  ESCAPE key).
> 
> 
> 

Of course the infinite loop is not a big problem, but the rest is. How could I grab a key hit in D/Tango? In tango FAQ it says use C function kbhit() or get(), but as I know, these are not in C standard library, and does not exist in glibc which come with my Linux machine which I use to programming.

I know I can use some 3rd party library like [ncurses](http://www.gnu.org/software/ncurses/), but it has same problem just like kbhit() or get(), it is not standard library in C or D and not pre-installed on Windows. What I hope is that I could done this exercise use just D/Tango and could run it on both Linux and Windows machine.

How could I do it?