Changeset 50cfa6c in mainline for uspace/lib/libc


Ignore:
Timestamp:
2009-07-14T21:25:13Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf5443d
Parents:
7d88587
Message:

Method for getting console color capabilities. Use to fix invisible tetris pieces.

Location:
uspace/lib/libc
Files:
4 edited

Legend:

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

    r7d88587 r50cfa6c  
    7070}
    7171
     72int console_get_color_cap(int phone, int *ccap)
     73{
     74        ipcarg_t ccap_tmp;
     75        int rc;
     76
     77        rc = async_req_0_1(phone, CONSOLE_GET_COLOR_CAP, &ccap_tmp);
     78        *ccap = ccap_tmp;
     79
     80        return rc;
     81}
     82
    7283void console_kcon_enable(int phone)
    7384{
  • uspace/lib/libc/include/io/console.h

    r7d88587 r50cfa6c  
    4444} console_ev_type_t;
    4545
     46enum {
     47        CONSOLE_CCAP_NONE = 0,
     48        CONSOLE_CCAP_STYLE,
     49        CONSOLE_CCAP_INDEXED,
     50        CONSOLE_CCAP_RGB
     51};
     52
    4653/** Console event structure. */
    4754typedef struct {
     
    6976
    7077extern void console_cursor_visibility(int phone, bool show);
     78extern int console_get_color_cap(int phone, int *ccap);
    7179extern void console_kcon_enable(int phone);
    7280
  • uspace/lib/libc/include/ipc/console.h

    r7d88587 r50cfa6c  
    4141typedef enum {
    4242        CONSOLE_GET_SIZE = VFS_OUT_LAST,
     43        CONSOLE_GET_COLOR_CAP,
    4344        CONSOLE_GET_EVENT,
    4445        CONSOLE_GOTO,
  • uspace/lib/libc/include/ipc/fb.h

    r7d88587 r50cfa6c  
    4242        FB_CLEAR,
    4343        FB_GET_CSIZE,
     44        FB_GET_COLOR_CAP,
    4445        FB_CURSOR_VISIBILITY,
    4546        FB_CURSOR_GOTO,
     
    7273} fb_request_t;
    7374
     75enum {
     76        FB_CCAP_NONE = 0,
     77        FB_CCAP_STYLE,
     78        FB_CCAP_INDEXED,
     79        FB_CCAP_RGB
     80};
     81
    7482#endif
    7583
Note: See TracChangeset for help on using the changeset viewer.