Ignore:
File:
1 edited

Legend:

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

    r7c014d1 r79ae36dd  
    7676bool console_kcon(void)
    7777{
     78#if 0
    7879        return __SYSCALL0(SYS_DEBUG_ACTIVATE_CONSOLE);
     80#endif
     81       
     82        return false;
    7983}
    8084
     
    8791{
    8892        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);
    9094        async_exchange_end(exch);
    9195}
     
    103107{
    104108        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
     113void console_set_color(console_ctrl_t *ctrl, uint8_t fg_color, uint8_t bg_color,
    110114    uint8_t flags)
    111115{
    112116        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
     121void 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);
    122126        async_exchange_end(exch);
    123127}
     
    126130{
    127131        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));
    129133        async_exchange_end(exch);
    130134}
     
    151155{
    152156        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);
    154158        async_exchange_end(exch);
    155159}
Note: See TracChangeset for help on using the changeset viewer.