Changeset 04803bf in mainline for uspace/lib/c/generic/io/console.c
- Timestamp:
- 2011-03-21T22:00:17Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 143932e3
- Parents:
- b50b5af2 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 moved
-
uspace/lib/c/generic/io/console.c (moved) (moved from uspace/lib/libc/generic/io/console.c ) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/console.c
rb50b5af2 r04803bf 45 45 } 46 46 47 int console_get_size(int phone, ipcarg_t *rows, ipcarg_t *cols)47 int console_get_size(int phone, sysarg_t *cols, sysarg_t *rows) 48 48 { 49 return async_req_0_2(phone, CONSOLE_GET_SIZE, rows, cols);49 return async_req_0_2(phone, CONSOLE_GET_SIZE, cols, rows); 50 50 } 51 51 52 void console_set_style(int phone, int style)52 void console_set_style(int phone, uint8_t style) 53 53 { 54 54 async_msg_1(phone, CONSOLE_SET_STYLE, style); 55 55 } 56 56 57 void console_set_color(int phone, int fg_color, int bg_color, int flags) 57 void console_set_color(int phone, uint8_t fg_color, uint8_t bg_color, 58 uint8_t flags) 58 59 { 59 60 async_msg_3(phone, CONSOLE_SET_COLOR, fg_color, bg_color, flags); 60 61 } 61 62 62 void console_set_rgb_color(int phone, int fg_color, int bg_color)63 void console_set_rgb_color(int phone, uint32_t fg_color, uint32_t bg_color) 63 64 { 64 65 async_msg_2(phone, CONSOLE_SET_RGB_COLOR, fg_color, bg_color); … … 67 68 void console_cursor_visibility(int phone, bool show) 68 69 { 69 async_msg_1(phone, CONSOLE_CURSOR_VISIBILITY, show != false);70 async_msg_1(phone, CONSOLE_CURSOR_VISIBILITY, (show != false)); 70 71 } 71 72 72 int console_get_color_cap(int phone, int *ccap)73 int console_get_color_cap(int phone, sysarg_t *ccap) 73 74 { 74 ipcarg_t ccap_tmp; 75 int rc; 76 77 rc = async_req_0_1(phone, CONSOLE_GET_COLOR_CAP, &ccap_tmp); 78 *ccap = ccap_tmp; 79 80 return rc; 75 return async_req_0_1(phone, CONSOLE_GET_COLOR_CAP, ccap); 81 76 } 82 77 … … 86 81 } 87 82 88 void console_goto(int phone, ipcarg_t row, ipcarg_t col)83 int console_get_pos(int phone, sysarg_t *col, sysarg_t *row) 89 84 { 90 async_msg_2(phone, CONSOLE_GOTO, row, col); 85 return async_req_0_2(phone, CONSOLE_GET_POS, col, row); 86 } 87 88 void console_set_pos(int phone, sysarg_t col, sysarg_t row) 89 { 90 async_msg_2(phone, CONSOLE_GOTO, col, row); 91 91 } 92 92 93 93 bool console_get_event(int phone, console_event_t *event) 94 94 { 95 ipcarg_t type;96 ipcarg_t key;97 ipcarg_t mods;98 ipcarg_t c;95 sysarg_t type; 96 sysarg_t key; 97 sysarg_t mods; 98 sysarg_t c; 99 99 100 100 int rc = async_req_0_4(phone, CONSOLE_GET_EVENT, &type, &key, &mods, &c);
Note:
See TracChangeset
for help on using the changeset viewer.
