Mercurial > pidgin.yaz
annotate console/libgnt/gntkeys.h @ 14286:a0394e417fab
[gaim-migrate @ 16972]
iirc, you shouldn't call the functions in prefix.h directly as they might not exist.
also add DATADIR to Makefile.am so EvilDennisR can find something else to complain about.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Tue, 22 Aug 2006 05:52:03 +0000 |
parents | e9dd2f76e61b |
children | 8a0cfee11af8 |
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~" |
13850
0e1e59770cb0
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
26 |
14213
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
27 #define GNT_KEY_CTRL_A "\001" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
28 #define GNT_KEY_CTRL_B "\002" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
29 #define GNT_KEY_CTRL_D "\004" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
30 #define GNT_KEY_CTRL_E "\005" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
31 #define GNT_KEY_CTRL_F "\006" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
32 #define GNT_KEY_CTRL_G "\007" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
33 #define GNT_KEY_CTRL_H "\010" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
34 #define GNT_KEY_CTRL_I "\011" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
35 #define GNT_KEY_CTRL_J "\012" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
36 #define GNT_KEY_CTRL_K "\013" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
37 #define GNT_KEY_CTRL_L "\014" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
38 #define GNT_KEY_CTRL_M "\012" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
39 #define GNT_KEY_CTRL_N "\016" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
40 #define GNT_KEY_CTRL_O "\017" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
41 #define GNT_KEY_CTRL_P "\020" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
42 #define GNT_KEY_CTRL_R "\022" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
43 #define GNT_KEY_CTRL_T "\024" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
44 #define GNT_KEY_CTRL_U "\025" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
45 #define GNT_KEY_CTRL_V "\026" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
46 #define GNT_KEY_CTRL_W "\027" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
47 #define GNT_KEY_CTRL_X "\030" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
48 #define GNT_KEY_CTRL_Y "\031" |
28269422838f
[gaim-migrate @ 16894]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14091
diff
changeset
|
49 |
14091
ae4cbed1b309
[gaim-migrate @ 16715]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
13896
diff
changeset
|
50 /** |
ae4cbed1b309
[gaim-migrate @ 16715]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
13896
diff
changeset
|
51 * This will do stuff with the terminal settings and stuff. |
ae4cbed1b309
[gaim-migrate @ 16715]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
13896
diff
changeset
|
52 */ |
ae4cbed1b309
[gaim-migrate @ 16715]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
13896
diff
changeset
|
53 void gnt_keys_refine(char *text); |
ae4cbed1b309
[gaim-migrate @ 16715]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
13896
diff
changeset
|
54 |
13850
0e1e59770cb0
[gaim-migrate @ 16308]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
55 #endif |