Changes in uspace/lib/c/generic/io/console.c [9f1362d4:63f8966] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/console.c
r9f1362d4 r63f8966 45 45 } 46 46 47 int console_get_size(int phone, i pcarg_t *cols, ipcarg_t *rows)47 int console_get_size(int phone, int *cols, int *rows) 48 48 { 49 return async_req_0_2(phone, CONSOLE_GET_SIZE, cols, rows); 49 ipcarg_t cols_v; 50 ipcarg_t rows_v; 51 int rc; 52 53 rc = async_req_0_2(phone, CONSOLE_GET_SIZE, &cols_v, &rows_v); 54 55 *cols = (int) cols_v; 56 *rows = (int) rows_v; 57 return rc; 50 58 } 51 59 52 void console_set_style(int phone, uint8_t style)60 void console_set_style(int phone, int style) 53 61 { 54 62 async_msg_1(phone, CONSOLE_SET_STYLE, style); 55 63 } 56 64 57 void console_set_color(int phone, uint8_t fg_color, uint8_t bg_color, 58 uint8_t flags) 65 void console_set_color(int phone, int fg_color, int bg_color, int flags) 59 66 { 60 67 async_msg_3(phone, CONSOLE_SET_COLOR, fg_color, bg_color, flags); 61 68 } 62 69 63 void console_set_rgb_color(int phone, uint32_t fg_color, uint32_t bg_color)70 void console_set_rgb_color(int phone, int fg_color, int bg_color) 64 71 { 65 72 async_msg_2(phone, CONSOLE_SET_RGB_COLOR, fg_color, bg_color); … … 68 75 void console_cursor_visibility(int phone, bool show) 69 76 { 70 async_msg_1(phone, CONSOLE_CURSOR_VISIBILITY, (show != false));77 async_msg_1(phone, CONSOLE_CURSOR_VISIBILITY, show != false); 71 78 } 72 79 73 int console_get_color_cap(int phone, i pcarg_t *ccap)80 int console_get_color_cap(int phone, int *ccap) 74 81 { 75 return async_req_0_1(phone, CONSOLE_GET_COLOR_CAP, ccap); 82 ipcarg_t ccap_tmp; 83 int rc; 84 85 rc = async_req_0_1(phone, CONSOLE_GET_COLOR_CAP, &ccap_tmp); 86 *ccap = ccap_tmp; 87 88 return rc; 76 89 } 77 90 … … 81 94 } 82 95 83 int console_get_pos(int phone, i pcarg_t *col, ipcarg_t *row)96 int console_get_pos(int phone, int *col, int *row) 84 97 { 85 return async_req_0_2(phone, CONSOLE_GET_POS, col, row); 98 ipcarg_t col_v; 99 ipcarg_t row_v; 100 int rc; 101 102 rc = async_req_0_2(phone, CONSOLE_GET_POS, &col_v, &row_v); 103 104 *col = (int) col_v; 105 *row = (int) row_v; 106 return rc; 86 107 } 87 108 88 void console_ set_pos(int phone, ipcarg_t col, ipcarg_t row)109 void console_goto(int phone, int col, int row) 89 110 { 90 111 async_msg_2(phone, CONSOLE_GOTO, col, row);
Note:
See TracChangeset
for help on using the changeset viewer.