Changes in uspace/lib/c/generic/io/console.c [7c014d1:79ae36dd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/console.c
r7c014d1 r79ae36dd 76 76 bool console_kcon(void) 77 77 { 78 #if 0 78 79 return __SYSCALL0(SYS_DEBUG_ACTIVATE_CONSOLE); 80 #endif 81 82 return false; 79 83 } 80 84 … … 87 91 { 88 92 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 89 async_ req_0_0(exch, CONSOLE_CLEAR);93 async_msg_0(exch, CONSOLE_CLEAR); 90 94 async_exchange_end(exch); 91 95 } … … 103 107 { 104 108 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 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,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, 110 114 uint8_t flags) 111 115 { 112 116 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 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);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); 122 126 async_exchange_end(exch); 123 127 } … … 126 130 { 127 131 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 128 async_ req_1_0(exch, CONSOLE_CURSOR_VISIBILITY, (show != false));132 async_msg_1(exch, CONSOLE_CURSOR_VISIBILITY, (show != false)); 129 133 async_exchange_end(exch); 130 134 } … … 151 155 { 152 156 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 153 async_ req_2_0(exch, CONSOLE_GOTO, col, row);157 async_msg_2(exch, CONSOLE_GOTO, col, row); 154 158 async_exchange_end(exch); 155 159 }
Note:
See TracChangeset
for help on using the changeset viewer.