I am teaching myself to program with ncurses in my spare time and have
been looking for some simple examples or information about binding
keystrokes etc.
I have been perusing the source of dselect and have had some luck
understanding how this works. From what I can tell ncurses makes it
fairly easy to map a number of non-printing keystrokes to functions
provided in "menu" and "form". I found a chart of ascii chars that has
helped but does not have all of the keys that I would like to detect.
I am still a little shakey on the implementation- it seems that
creating a struct with the name of the keypress and a pointer to the
desired function is a good way to map these things together.
Anyway, does anyone know of a good tutorial, example or otherwise
helpful documentation?
I am interested in input loop examples as well as information about
detecting non-printing chars, etc.
Thanks ahead of time for any help :)