Mariano Alvarez Fernandez schrieb:
The win32 port provides GrKeyRead, GrKeyStat, kbhit, getkey and getch (the last three only for compatibility with old programs, without prototipe they in grx20.h). All functions use the GUI input. For read/write to console you need to read/write to stdin/stdout. See src/mouse/w32keys.c
With a little experimenting I found the following summary: IMHO this should be completed and go to the docs.
"all C-output function write to the Console" to printf( -> Console window fprintf(stdout, -> Console window puts( -> Console window
getch( <- Graphics window kbhit( <- Graphics window gets( <- Console window fgetc(stdin <- Console window "all other C-input functions refer to the Console"
As far as I see there is no equivalent function like kbhit(stdin) to obtain the console stream satus.