I'm trying to port a C application to D. The problem I have is interacting with the console. I'm using the POSIX "read" function, the problem is that in the D version the "read" function seems to never return. The C version works fine and prints "**********" after I press a key. I've created a small test case for the problem below:

D code: http://pastebin.com/SsYZcjMG
C code: http://pastebin.com/QyprKD17

Is suspect that it's something in the "initterm" function that isn't working properly. Any ideas?

I'm using DMD 2.058 on Mac OS X.

--
/Jacob Carlborg

Reply via email to