[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How ncurses handle the special key like F1?
From: |
Howard |
Subject: |
Re: How ncurses handle the special key like F1? |
Date: |
Wed, 05 Nov 2008 19:38:57 -0500 |
User-agent: |
Thunderbird 1.5.0.12 (X11/20071019) |
You can see them like this:
----------
#include<stdio.h>
int main()
{
char c, i;
printf("Hit enter to see the values of chars you've entered, X to
quit.\n");
for( i = 1; i && (c = getc(stdin)) != 'X'; i++)
printf("%02x ", c );
return 0;
}
----------
Then just figure out what to do about it!