Problem interacting with the console
Jacob Carlborg
doob at me.com
Thu Mar 29 12:51:08 PDT 2012
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
More information about the Digitalmars-d-learn
mailing list