Capturing arrow keys using _getwch()

  arrow-keys, c++

When I captured (using _getwch()) and print to the screen (using std::cout) the arrow keys from my keyboard I get – left arrow: α and K (two separate inputs) ; right arrow: α M; up arrow: α H; down arrow: α P. These are not what I have read that I should get.
I have tried to check the α separately, by printing the unicode for α, in this manner:
cout << "alpha? : " << ‘u03B1’ << endl;
but this prints out: alpha? : ?.
Can someone give me some pointers on using arrow keys?

Source: Windows Questions C++

LEAVE A COMMENT