pdcurses-l  

[PDCurses] KEY_CONTROL_{L,R}

Ingo Brueckl
Wed, 16 May 2001 15:55:41 -0700

Hi,

has anyone experience with the new KEY_CONTROL_{L,R} keycode? I try to
determine whether the keycode was produced by using a control key:

  nodelay(win, FALSE);
  int key = wgetch(win);
  nodelay(win, TRUE);
  int c = wgetch(win);
  if (c == KEY_CONTROL_L || c == KEY_CONTROL_R) // ...

but c seems to be always 0.

Any ideas?

Ingo
  • [PDCurses] KEY_CONTROL_{L,R} Ingo Brueckl