handling multiple keystrokes with ncurses

Karthik Sarangan <[email protected]> Wed, 31 Jan 2007 09:26:10 +0500
Newsgroups gmane.comp.lib.ncurses.general
Message-ID <[email protected]>
getch() retrieves only one character at a time.

If I press two keys (Eg: UP_ARROW followed by LEFT_ARROW without leaving
UP_ARROW) then I get 259 (UP_ARROW) followed by 260 (LEFT_ARROW).

However if I release them, getch() doesn't return any keycode.

Could someone please explain how multiple key strokes can be handled in ncurses?