Cleanup in elf.c with .bss section clean; adm command mounts cdrom instead of floppy...
[ZeXOS.git] / kernel / include / conio.h
blobe0bce4ac8faef7548c8d0bccef991c9fed6b5a88
1 /*
2 * ZeX/OS
3 * Copyright (C) 2007 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef __TL_CONIO_H
21 #define __TL_CONIO_H
23 #ifdef __cplusplus
24 extern "C"
26 #endif
28 /* "bucky bits"
29 0x0100 is reserved for non-ASCII keys, so start with 0x200 */
30 #define KBD_META_ALT 0x0200 /* Alt is pressed */
31 #define KBD_META_CTRL 0x0400 /* Ctrl is pressed */
32 #define KBD_META_SHIFT 0x0800 /* Shift is pressed */
33 #define KBD_META_ANY (KBD_META_ALT | KBD_META_CTRL | KBD_META_SHIFT)
34 #define KBD_META_CAPS 0x1000 /* CapsLock is on */
35 #define KBD_META_NUM 0x2000 /* NumLock is on */
36 #define KBD_META_SCRL 0x4000 /* ScrollLock is on */
38 /* "ASCII" values for non-ASCII keys. All of these are user-defined.
40 Hrrm. Unicode defines code pages for pseudographics (e.g. box-drawing
41 characters). I wonder it defines anything for keys like these?
43 function keys: */
44 #define KEY_F1 0x80
45 #define KEY_F2 (KEY_F1 + 1)
46 #define KEY_F3 (KEY_F2 + 1)
47 #define KEY_F4 (KEY_F3 + 1)
48 #define KEY_F5 (KEY_F4 + 1)
49 #define KEY_F6 (KEY_F5 + 1)
50 #define KEY_F7 (KEY_F6 + 1)
51 #define KEY_F8 (KEY_F7 + 1)
52 #define KEY_F9 (KEY_F8 + 1)
53 #define KEY_F10 (KEY_F9 + 1)
54 #define KEY_F11 (KEY_F10 + 1)
55 #define KEY_F12 (KEY_F11 + 1)
56 /* cursor keys */
57 #define KEY_INS 0x90
58 #define KEY_DEL (KEY_INS + 1)
59 #define KEY_HOME (KEY_DEL + 1)
60 #define KEY_END (KEY_HOME + 1)
61 #define KEY_PGUP (KEY_END + 1)
62 #define KEY_PGDN (KEY_PGUP + 1)
63 #define KEY_LFT (KEY_PGDN + 1)
64 #define KEY_UP (KEY_LFT + 1)
65 #define KEY_DN (KEY_UP + 1)
66 #define KEY_RT (KEY_DN + 1)
67 /* print screen/sys rq and pause/break */
68 #define KEY_PRNT (KEY_RT + 1)
69 #define KEY_PAUSE (KEY_PRNT + 1)
70 /* these return a value but they could also act as additional bucky keys */
71 #define KEY_LWIN (KEY_PAUSE + 1)
72 #define KEY_RWIN (KEY_LWIN + 1)
73 #define KEY_MENU (KEY_RWIN + 1)
75 #ifdef __cplusplus
77 #endif
79 #endif