Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/console.c

    r79ae36dd r7c014d1  
    7676bool console_kcon(void)
    7777{
    78 #if 0
    7978        return __SYSCALL0(SYS_DEBUG_ACTIVATE_CONSOLE);
    80 #endif
    81        
    82         return false;
    8379}
    8480
     
    9187{
    9288        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);
    9490        async_exchange_end(exch);
    9591}
     
    107103{
    108104        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
     109void console_set_color(console_ctrl_t *ctrl, uint8_t bgcolor, uint8_t fgcolor,
    114110    uint8_t flags)
    115111{
    116112        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
     117void 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);
    126122        async_exchange_end(exch);
    127123}
     
    130126{
    131127        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));
    133129        async_exchange_end(exch);
    134130}
     
    155151{
    156152        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);
    158154        async_exchange_end(exch);
    159155}
Note: See TracChangeset for help on using the changeset viewer.