Changeset 7ce3cb2 in mainline for uspace/srv/console/screenbuffer.h


Ignore:
Timestamp:
2009-04-02T22:04:29Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
Children:
b888d5f
Parents:
58d5a7e7
Message:

Define wchar_t in userspace. Use it in fb and console.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/console/screenbuffer.h

    r58d5a7e7 r7ce3cb2  
    3737
    3838#include <stdint.h>
     39#include <sys/types.h>
    3940
    4041#define DEFAULT_FOREGROUND 0x0  /**< default console foreground color */
     
    7172/** One field on screen. It contain one character and its attributes. */
    7273typedef struct {
    73         char character;                 /**< Character itself */
     74        wchar_t character;              /**< Character itself */
    7475        attrs_t attrs;                  /**< Character`s attributes */
    7576} keyfield_t;
     
    9293 * @return      keyfield structure with character and its attributes on x,y
    9394 */
    94 static inline keyfield_t *get_field_at(screenbuffer_t *scr, unsigned int x, unsigned int y) 
     95static inline keyfield_t *get_field_at(screenbuffer_t *scr, unsigned int x, unsigned int y)
    9596{
    9697        return scr->buffer + x + ((y + scr->top_line) % scr->size_y) * scr->size_x;
     
    117118
    118119
    119 void screenbuffer_putchar(screenbuffer_t *scr, char c);
     120void screenbuffer_putchar(screenbuffer_t *scr, wchar_t c);
    120121screenbuffer_t *screenbuffer_init(screenbuffer_t *scr, int size_x, int size_y);
    121122
Note: See TracChangeset for help on using the changeset viewer.