annotate console/libgnt/gntkeys.h @ 14812:399d4ccb34db

[gaim-migrate @ 17578] Some of these were out of order committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 24 Oct 2006 22:09:56 +0000
parents 8a0cfee11af8
children 70623f0d5cdc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13850
0e1e59770cb0 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
1 #ifndef GNT_KEYS_H
0e1e59770cb0 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
2 #define GNT_KEYS_H
0e1e59770cb0 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
3
13855
5b288502a382 [gaim-migrate @ 16314]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13850
diff changeset
4 #define GNT_KEY_POPUP "[29~"
13850
0e1e59770cb0 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
5
0e1e59770cb0 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
6 /* Arrow keys */
13855
5b288502a382 [gaim-migrate @ 16314]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13850
diff changeset
7 #define GNT_KEY_LEFT "[D"
5b288502a382 [gaim-migrate @ 16314]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13850
diff changeset
8 #define GNT_KEY_RIGHT "[C"
5b288502a382 [gaim-migrate @ 16314]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13850
diff changeset
9 #define GNT_KEY_UP "[A"
5b288502a382 [gaim-migrate @ 16314]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13850
diff changeset
10 #define GNT_KEY_DOWN "[B"
13850
0e1e59770cb0 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
11
14091
ae4cbed1b309 [gaim-migrate @ 16715]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13896
diff changeset
12 #define GNT_KEY_CTRL_UP "[1;5A"
ae4cbed1b309 [gaim-migrate @ 16715]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13896
diff changeset
13 #define GNT_KEY_CTRL_DOWN "[1;5B"
ae4cbed1b309 [gaim-migrate @ 16715]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13896
diff changeset
14 #define GNT_KEY_CTRL_RIGHT "[1;5C"
ae4cbed1b309 [gaim-migrate @ 16715]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13896
diff changeset
15 #define GNT_KEY_CTRL_LEFT "[1;5D"
ae4cbed1b309 [gaim-migrate @ 16715]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13896
diff changeset
16
13896
a621329e8c85 [gaim-migrate @ 16381]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13855
diff changeset
17 #define GNT_KEY_PGUP "[5~"
a621329e8c85 [gaim-migrate @ 16381]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13855
diff changeset
18 #define GNT_KEY_PGDOWN "[6~"
14216
e9dd2f76e61b [gaim-migrate @ 16897]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14213
diff changeset
19 #define GNT_KEY_HOME "[7~"
e9dd2f76e61b [gaim-migrate @ 16897]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14213
diff changeset
20 #define GNT_KEY_END "[8~"
13896
a621329e8c85 [gaim-migrate @ 16381]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13855
diff changeset
21
13855
5b288502a382 [gaim-migrate @ 16314]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13850
diff changeset
22 #define GNT_KEY_ENTER "\r"
5b288502a382 [gaim-migrate @ 16314]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13850
diff changeset
23
5b288502a382 [gaim-migrate @ 16314]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13850
diff changeset
24 #define GNT_KEY_BACKSPACE "\177"
5b288502a382 [gaim-migrate @ 16314]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13850
diff changeset
25 #define GNT_KEY_DEL "[3~"
14793
8a0cfee11af8 [gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14216
diff changeset
26 #define GNT_KEY_INS "[2~"
13850
0e1e59770cb0 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
27
14213
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
28 #define GNT_KEY_CTRL_A "\001"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
29 #define GNT_KEY_CTRL_B "\002"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
30 #define GNT_KEY_CTRL_D "\004"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
31 #define GNT_KEY_CTRL_E "\005"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
32 #define GNT_KEY_CTRL_F "\006"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
33 #define GNT_KEY_CTRL_G "\007"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
34 #define GNT_KEY_CTRL_H "\010"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
35 #define GNT_KEY_CTRL_I "\011"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
36 #define GNT_KEY_CTRL_J "\012"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
37 #define GNT_KEY_CTRL_K "\013"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
38 #define GNT_KEY_CTRL_L "\014"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
39 #define GNT_KEY_CTRL_M "\012"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
40 #define GNT_KEY_CTRL_N "\016"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
41 #define GNT_KEY_CTRL_O "\017"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
42 #define GNT_KEY_CTRL_P "\020"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
43 #define GNT_KEY_CTRL_R "\022"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
44 #define GNT_KEY_CTRL_T "\024"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
45 #define GNT_KEY_CTRL_U "\025"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
46 #define GNT_KEY_CTRL_V "\026"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
47 #define GNT_KEY_CTRL_W "\027"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
48 #define GNT_KEY_CTRL_X "\030"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
49 #define GNT_KEY_CTRL_Y "\031"
28269422838f [gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14091
diff changeset
50
14793
8a0cfee11af8 [gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14216
diff changeset
51 #define GNT_KEY_F1 "[[A"
8a0cfee11af8 [gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14216
diff changeset
52 #define GNT_KEY_F2 "[[B"
8a0cfee11af8 [gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14216
diff changeset
53 #define GNT_KEY_F3 "[[C"
8a0cfee11af8 [gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14216
diff changeset
54 #define GNT_KEY_F4 "[[D"
8a0cfee11af8 [gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14216
diff changeset
55 #define GNT_KEY_F5 "[[E"
8a0cfee11af8 [gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14216
diff changeset
56 #define GNT_KEY_F6 "[17~"
8a0cfee11af8 [gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14216
diff changeset
57 #define GNT_KEY_F7 "[18~"
8a0cfee11af8 [gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14216
diff changeset
58 #define GNT_KEY_F8 "[19~"
8a0cfee11af8 [gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14216
diff changeset
59 #define GNT_KEY_F9 "[20~"
8a0cfee11af8 [gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14216
diff changeset
60 #define GNT_KEY_F10 "[21~"
8a0cfee11af8 [gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14216
diff changeset
61 #define GNT_KEY_F11 "[23~"
8a0cfee11af8 [gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14216
diff changeset
62 #define GNT_KEY_F12 "[24~"
8a0cfee11af8 [gaim-migrate @ 17558]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 14216
diff changeset
63
14091
ae4cbed1b309 [gaim-migrate @ 16715]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13896
diff changeset
64 /**
ae4cbed1b309 [gaim-migrate @ 16715]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13896
diff changeset
65 * This will do stuff with the terminal settings and stuff.
ae4cbed1b309 [gaim-migrate @ 16715]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13896
diff changeset
66 */
ae4cbed1b309 [gaim-migrate @ 16715]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13896
diff changeset
67 void gnt_keys_refine(char *text);
ae4cbed1b309 [gaim-migrate @ 16715]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 13896
diff changeset
68
13850
0e1e59770cb0 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
69 #endif