Philip Tong wrote:

> What is the most standard method of capturing the unique codes of keys
> pressed?

It depends.

> I'm writing a program and is using ncurses library. I would like to
> write a routine which will allow me to control the data entry for a
> string of characters with editing functions (backspace, insert keys and
> arrow keys).
> 
> What is the most standard and correct method to capture the keys
> pressed?

For (n)curses, use one of the getch() functions, described in the
curs_getch(3) manpage.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to