scanf() wartet immer auf die Eingabe, das ist ANSI-C und unabhängig vom Betriebssystem.carsto schrieb:nur scanf darf nicht die Hauptschleife anhalten.
The getch, wgetch, mvgetch and mvwgetch, routines read a character from the window. In no-delay mode, if no input is waiting, the value ERR is returned. In delay mode, the program waits until the system passes text through to the program. Depending on the setting of cbreak, this is after one character (cbreak mode), or after the first newline (nocbreak mode). In half-delay mode, the program waits until a character is typed or the specified timeout has been reached.