not neccesarily. thats only if you want to make a gui window. if you want to make a vim clone or something like that, ncurses would be better, but i guess this way works too. (i shudder at the c/c++ mixing like that though)
Thank you for the responses! I'm sorry for being away for a while, just read it.
So I simply moved line 38 to the top of the main-function and all works fine.
The only thing left is the detection of key-arrows. I've already read some topics about that. Most of them say, there will be two characters to analyse. But i never understood, how that's done.
Could you explain it to me or rather post some code? Would be great!
Sorry I mean GetKeyState and GetAsynKeyState. Also check out the virtual keys ( left = VK_LEFT ect for the other keys ). Or this thread: http://www.cplusplus.com/forum/beginner/75529/ Also disch suggested using curse earlier same with dts