digitalmars.D - getche() from Mars
- Bob W (13/13) Feb 27 2006 Wrong forum, I know.
Wrong forum, I know. But I have tried to use getche() in D and it wasn't doing what I've expected. So I tried it in dmc - same thing. Gcc, v++ and myself tend to think that getche() should wait for one character from stdin, which is echoed and returned. The dmc/dmd handling of getche() is that it takes an entire string until EOL is encountered. The first character of the string is returned and the rest of it including CR and LF is buffered and is annoying my subsequent getch() functions. ?????
Feb 27 2006