Mercurial > pidgin.yaz
view console/libgnt/gntkeys.h @ 14976:2ccce4e114ca
[gaim-migrate @ 17754]
*cough*
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 15 Nov 2006 20:11:01 +0000 |
parents | c01f62c83647 |
children | 1c0772f7260b |
line wrap: on
line source
#ifndef GNT_KEYS_H #define GNT_KEYS_H #include <curses.h> #include <term.h> #define SAFE(x) ((x) ? (x) : "") #define GNT_KEY_POPUP SAFE(key_f16) /* Apparently */ /* Arrow keys */ #define GNT_KEY_LEFT SAFE(key_left) #define GNT_KEY_RIGHT SAFE(key_right) #define GNT_KEY_UP SAFE(key_up) #define GNT_KEY_DOWN SAFE(key_down) #define GNT_KEY_CTRL_UP "[1;5A" #define GNT_KEY_CTRL_DOWN "[1;5B" #define GNT_KEY_CTRL_RIGHT "[1;5C" #define GNT_KEY_CTRL_LEFT "[1;5D" #define GNT_KEY_PGUP SAFE(key_ppage) #define GNT_KEY_PGDOWN SAFE(key_npage) #define GNT_KEY_HOME SAFE(key_home) #define GNT_KEY_END SAFE(key_end) #define GNT_KEY_ENTER carriage_return #define GNT_KEY_BACKSPACE SAFE(key_backspace) #define GNT_KEY_DEL SAFE(key_dc) #define GNT_KEY_INS SAFE(key_ic) #define GNT_KEY_CTRL_A "\001" #define GNT_KEY_CTRL_B "\002" #define GNT_KEY_CTRL_D "\004" #define GNT_KEY_CTRL_E "\005" #define GNT_KEY_CTRL_F "\006" #define GNT_KEY_CTRL_G "\007" #define GNT_KEY_CTRL_H "\010" #define GNT_KEY_CTRL_I "\011" #define GNT_KEY_CTRL_J "\012" #define GNT_KEY_CTRL_K "\013" #define GNT_KEY_CTRL_L "\014" #define GNT_KEY_CTRL_M "\012" #define GNT_KEY_CTRL_N "\016" #define GNT_KEY_CTRL_O "\017" #define GNT_KEY_CTRL_P "\020" #define GNT_KEY_CTRL_R "\022" #define GNT_KEY_CTRL_T "\024" #define GNT_KEY_CTRL_U "\025" #define GNT_KEY_CTRL_V "\026" #define GNT_KEY_CTRL_W "\027" #define GNT_KEY_CTRL_X "\030" #define GNT_KEY_CTRL_Y "\031" #define GNT_KEY_F1 SAFE(key_f1) #define GNT_KEY_F2 SAFE(key_f2) #define GNT_KEY_F3 SAFE(key_f3) #define GNT_KEY_F4 SAFE(key_f4) #define GNT_KEY_F5 SAFE(key_f5) #define GNT_KEY_F6 SAFE(key_f6) #define GNT_KEY_F7 SAFE(key_f7) #define GNT_KEY_F8 SAFE(key_f8) #define GNT_KEY_F9 SAFE(key_f9) #define GNT_KEY_F10 SAFE(key_f10) #define GNT_KEY_F11 SAFE(key_f11) #define GNT_KEY_F12 SAFE(key_f12) /** * This will do stuff with the terminal settings and stuff. */ void gnt_keys_refine(char *text); /* A lot of commonly used variable names are defined in <term.h>. * #undef them to make life easier for everyone. */ #undef columns #undef lines #undef buttons #undef newline #endif