Changes in uspace/lib/c/generic/io/console.c [79ae36dd:7c014d1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/console.c
r79ae36dd r7c014d1 76 76 bool console_kcon(void) 77 77 { 78 #if 079 78 return __SYSCALL0(SYS_DEBUG_ACTIVATE_CONSOLE); 80 #endif81 82 return false;83 79 } 84 80 … … 91 87 { 92 88 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 93 async_ msg_0(exch, CONSOLE_CLEAR);89 async_req_0_0(exch, CONSOLE_CLEAR); 94 90 async_exchange_end(exch); 95 91 } … … 107 103 { 108 104 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 109 async_ msg_1(exch, CONSOLE_SET_STYLE, style);110 async_exchange_end(exch); 111 } 112 113 void console_set_color(console_ctrl_t *ctrl, uint8_t fg_color, uint8_t bg_color,105 async_req_1_0(exch, CONSOLE_SET_STYLE, style); 106 async_exchange_end(exch); 107 } 108 109 void console_set_color(console_ctrl_t *ctrl, uint8_t bgcolor, uint8_t fgcolor, 114 110 uint8_t flags) 115 111 { 116 112 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 117 async_ msg_3(exch, CONSOLE_SET_COLOR, fg_color, bg_color, flags);118 async_exchange_end(exch); 119 } 120 121 void console_set_rgb_color(console_ctrl_t *ctrl, uint32_t fg_color,122 uint32_t bg_color)123 { 124 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 125 async_ msg_2(exch, CONSOLE_SET_RGB_COLOR, fg_color, bg_color);113 async_req_3_0(exch, CONSOLE_SET_COLOR, bgcolor, fgcolor, flags); 114 async_exchange_end(exch); 115 } 116 117 void console_set_rgb_color(console_ctrl_t *ctrl, uint32_t bgcolor, 118 uint32_t fgcolor) 119 { 120 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 121 async_req_2_0(exch, CONSOLE_SET_RGB_COLOR, bgcolor, fgcolor); 126 122 async_exchange_end(exch); 127 123 } … … 130 126 { 131 127 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 132 async_ msg_1(exch, CONSOLE_CURSOR_VISIBILITY, (show != false));128 async_req_1_0(exch, CONSOLE_CURSOR_VISIBILITY, (show != false)); 133 129 async_exchange_end(exch); 134 130 } … … 155 151 { 156 152 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 157 async_ msg_2(exch, CONSOLE_GOTO, col, row);153 async_req_2_0(exch, CONSOLE_GOTO, col, row); 158 154 async_exchange_end(exch); 159 155 }
Note:
See TracChangeset
for help on using the changeset viewer.