Changeset 0c6984e in mainline


Ignore:
Timestamp:
2006-06-02T17:33:44Z (18 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1b4e74
Parents:
e1c4849
Message:

Console support for flush.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • console/console.c

    re1c4849 r0c6984e  
    182182                                if (c == '0') {
    183183                                        /* switch to kernel console*/
    184                                         sync_send_2(fb_info.phone, FB_CURSOR_VISIBILITY, 0, 0, NULL, NULL);
     184                                        nsend_call(fb_info.phone, FB_CURSOR_VISIBILITY, 0);
    185185                                        nsend_call_2(fb_info.phone, FB_SET_STYLE, DEFAULT_FOREGROUND_COLOR, DEFAULT_BACKGROUND_COLOR);
    186186                                        nsend_call(fb_info.phone, FB_CLEAR, 0);
     
    291291                       
    292292                        break;
     293
    293294                case CONSOLE_GETSIZE:
    294295                        arg1 = fb_info.cols;
    295296                        arg2 = fb_info.rows;
    296297                        break;
    297 
     298                case CONSOLE_FLUSH:
     299                        sync_send_2(fb_info.phone, FB_FLUSH, 0, 0, NULL, NULL);         
     300                        break;
    298301                case CONSOLE_GETCHAR:
    299302                        if (keybuffer_empty(&(connections[consnum].keybuffer))) {
  • console/console.h

    re1c4849 r0c6984e  
    3737#define CONSOLE_GOTO    1029
    3838#define CONSOLE_GETSIZE 1030
     39#define CONSOLE_FLUSH   1031
    3940
    4041#endif
  • libc/include/ipc/fb.h

    re1c4849 r0c6984e  
    1919#define FB_GET_RESOLUTION    1035
    2020#define FB_DRAW_TEXT_DATA    1036
     21#define FB_FLUSH             1037
    2122
    2223#endif
Note: See TracChangeset for help on using the changeset viewer.