Changeset 7ce3cb2 in mainline for uspace/srv/console/screenbuffer.h
- Timestamp:
- 2009-04-02T22:04:29Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b888d5f
- Parents:
- 58d5a7e7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/console/screenbuffer.h
r58d5a7e7 r7ce3cb2 37 37 38 38 #include <stdint.h> 39 #include <sys/types.h> 39 40 40 41 #define DEFAULT_FOREGROUND 0x0 /**< default console foreground color */ … … 71 72 /** One field on screen. It contain one character and its attributes. */ 72 73 typedef struct { 73 char character;/**< Character itself */74 wchar_t character; /**< Character itself */ 74 75 attrs_t attrs; /**< Character`s attributes */ 75 76 } keyfield_t; … … 92 93 * @return keyfield structure with character and its attributes on x,y 93 94 */ 94 static inline keyfield_t *get_field_at(screenbuffer_t *scr, unsigned int x, unsigned int y) 95 static inline keyfield_t *get_field_at(screenbuffer_t *scr, unsigned int x, unsigned int y) 95 96 { 96 97 return scr->buffer + x + ((y + scr->top_line) % scr->size_y) * scr->size_x; … … 117 118 118 119 119 void screenbuffer_putchar(screenbuffer_t *scr, charc);120 void screenbuffer_putchar(screenbuffer_t *scr, wchar_t c); 120 121 screenbuffer_t *screenbuffer_init(screenbuffer_t *scr, int size_x, int size_y); 121 122
Note:
See TracChangeset
for help on using the changeset viewer.