hi,
I need a function like getchar() (not QT class); but when I press a char, It should be gon on (and not waiting for enter button). Is there that? thanks
hi,
I need a function like getchar() (not QT class); but when I press a char, It should be gon on (and not waiting for enter button). Is there that? thanks
Regards
sorry but I was looking for a not QT function....
Regards
I don't understand how......It go out from the cycle with . but I need don't press <enter> key...
Regards
For Windows only ... there's _getch(). The function only waits for a single keypress, it does not wait until ENTER has been pressed.
You'll find it in conio.h
int _getch(void);
Let me know if you find a more portable version. I've been looking for a non-Qt solution also.
AFAIK it can be done with readline or ncurses libraries, plain C++ won't do what you require.
Bookmarks