I'm having trouble detecting arrow key presses with and without the SHIFT and CTRL modifiers pressed.
I have the following test code:
WINDOW * mainwin = initscr();
keypad(mainwin, TRUE);
int c = wgetch(mainwin);
This successfully returns different values for 'c' when the arrow keys - with modifiers - are pressed, and the terminal's TERM setting is set to 'xterm'. It does not work when the terminal's TERM setting is set to 'linux'. All I get for 'c' is 27 with either shift or ctrl pressed.
I would like it to work using the linux terminal type. Any suggestions?