#Amiga kbhit() & getch()
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