I suppose i didnt understand what this means,
how can be call twice? Does not means needs to wait for two press to work? Nevertheless, i can not catch arrow key.Quote:
The _getch function reads a single character from the console without echoing. _getche reads a single character from the console and echoes the character read. Neither function can be used to read CTRL+C. When reading a function key or an arrow key, _getch and _getche must be called twice; the first call returns 0 or 0xE0, and the second call returns the actual key code.
using BC++5.5(commandline free compiler) for dos.