1 2 3 4 5 6 7 8 9 10 11
#include <term.h> #define key_f2 tigetstr("kf2") /** f2 key **/ /* TERMINFO_NAME(kf2) TERMCAP_NAME(k2) XOPEN(400) */