Changeset 2595dab in mainline for uspace/lib/libc/include/io/console.h
- Timestamp:
- 2009-06-03T19:26:28Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d00ae4c
- Parents:
- ca3ba3a
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/include/io/console.h
rca3ba3a r2595dab 1 1 /* 2 * Copyright (c) 200 9Jiri Svoboda2 * Copyright (c) 2008 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 28 28 29 29 /** @addtogroup libc 30 * @{ 30 * @{ 31 31 */ 32 32 /** @file 33 33 */ 34 34 35 #ifndef LIBC_ KBD_H_36 #define LIBC_ KBD_H_35 #ifndef LIBC_IO_CONSOLE_H_ 36 #define LIBC_IO_CONSOLE_H_ 37 37 38 #include <sys/types.h> 38 #include <ipc/ipc.h> 39 #include <bool.h> 39 40 40 typedef enum kbd_ev_type{41 KE _PRESS,42 KE _RELEASE43 } kbd_ev_type_t;41 typedef enum { 42 KEY_PRESS, 43 KEY_RELEASE 44 } console_ev_type_t; 44 45 45 /** Keyboardevent structure. */46 /** Console event structure. */ 46 47 typedef struct { 47 48 /** Press or release event. */ 48 kbd_ev_type_t type;49 49 console_ev_type_t type; 50 50 51 /** Keycode of the key that was pressed or released. */ 51 52 unsigned int key; 52 53 53 54 /** Bitmask of modifiers held. */ 54 55 unsigned int mods; 55 56 56 57 /** The character that was generated or '\0' for none. */ 57 58 wchar_t c; 58 } kbd_event_t;59 } console_event_t; 59 60 60 extern int kbd_get_event(kbd_event_t *); 61 extern void console_clear(int phone); 62 63 extern int console_get_size(int phone, ipcarg_t *rows, ipcarg_t *cols); 64 extern void console_goto(int phone, ipcarg_t row, ipcarg_t col); 65 66 extern void console_set_style(int phone, int style); 67 extern void console_set_color(int phone, int fg_color, int bg_color, int flags); 68 extern void console_set_rgb_color(int phone, int fg_color, int bg_color); 69 70 extern void console_cursor_visibility(int phone, bool show); 71 extern void console_kcon_enable(int phone); 72 73 extern bool console_get_event(int phone, console_event_t *event); 61 74 62 75 #endif 63 76 64 77 /** @} 65 78 */
Note:
See TracChangeset
for help on using the changeset viewer.