Changeset 7ce3cb2 in mainline for uspace/srv/console/console.c


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, topic/simplify-dev-export
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/console.c

    r58d5a7e7 r7ce3cb2  
    104104static char cwrite_buf[CWRITE_BUF_SIZE];
    105105
    106 static void fb_putchar(char c, int row, int col);
     106static void fb_putchar(wchar_t c, int row, int col);
    107107
    108108
     
    252252
    253253/** Print a character to the active VC with buffering. */
    254 static void fb_putchar(char c, int row, int col)
     254static void fb_putchar(wchar_t c, int row, int col)
    255255{
    256256        async_msg_3(fb_info.phone, FB_PUTCHAR, c, row, col);
     
    258258
    259259/** Process a character from the client (TTY emulation). */
    260 static void write_char(int console, char key)
     260static void write_char(int console, wchar_t ch)
    261261{
    262262        bool flush_cursor = false;
    263263        screenbuffer_t *scr = &(connections[console].screenbuffer);
    264264
    265         switch (key) {
     265        switch (ch) {
    266266        case '\n':
    267267                fb_pending_flush();
     
    288288                        cell_mark_changed(scr->position_y, scr->position_x);
    289289
    290                 screenbuffer_putchar(scr, key);
     290                screenbuffer_putchar(scr, ch);
    291291                scr->position_x++;
    292292        }
Note: See TracChangeset for help on using the changeset viewer.