At 12:47 29/10/2005, you wrote:
Hi Chris,
Using getch() function you will be able to get the key code. But
it will be for only Ascii characters i.e. from 0 to 255. But
complex key codes or lets say combination keys like as you say Ctrl
+A, are double byte means you will need to call getch() twice to
read actual key code. In first read it will give 0 (most probably)
and in second getch() it will return another code. Give it a try.
Ummm... this is not strictly correct. Ctrl-@ (I think), Ctrl-A
through Ctrl-Z and Ctrl-] are ASCII characters 0-27, they are only
single byte characters, not "complex codes".
Regards
John Breen
_______________________________________________
Help-ncurses mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-ncurses