CompuServe Messages

#Amiga kbhit() & getch()

    27-Jul-94 13:24:36
Sb: #Amiga kbhit() & getch()
Fm: ron flory 71053,3551
To: ron flory 71053,3551
getch() I am trying to port one of my C++ programs to Amiga GNU C++ 2.5.8. The problem is the program was originally developed under MSDos and makes use of calls to 'kbhit()' and 'getch()'. These functions apparently do not exist in the Unix world, but must surely exist as ROM or System Kernal calls. (I hope…). As a C++ programmer who daily works with embedded systems, I'm not afraid to work down at the 'nuts and bolts' level of a system, so long as I have some idea what I'm doing there. The functions: kbhit() – return non-zero if a character has been pressed by the user. Operates in NON-BUFFERED mode, which means I dont want to wait for a carriage-return. getch() – return the char value from the keyboard fifo without console/crt echo. Operates in NON-BUFFERED mode, which means I dont want to wait for a carriage-return. If anyone knows how to access equivelent information from the Amiga system, please enlighten me. Thanks, Ron Flory, Kechi Kansas