Ignore:
Timestamp:
2018-05-29T13:25:07Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fc0b2a8
Parents:
a57fa32
git-author:
Jiri Svoboda <jiri@…> (2018-05-28 17:24:17)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-29 13:25:07)
Message:

fputc, putchar vs. fputwc, putwchar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/kconsole.c

    ra57fa32 red88c8e  
    160160        size_t i;
    161161        for (i = 0; i < count; i++)
    162                 putchar(ch);
     162                putwchar(ch);
    163163}
    164164
     
    339339                if (ch == '\n') {
    340340                        /* Enter */
    341                         putchar(ch);
     341                        putwchar(ch);
    342342                        break;
    343343                }
     
    350350                        if (wstr_remove(current, position - 1)) {
    351351                                position--;
    352                                 putchar('\b');
     352                                putwchar('\b');
    353353                                printf("%ls ", current + position);
    354354                                print_cc('\b', wstr_length(current) - position + 1);
     
    363363                        for (; (current[position] != 0) && (!isspace(current[position]));
    364364                            position++)
    365                                 putchar(current[position]);
     365                                putwchar(current[position]);
    366366
    367367
     
    459459                        /* Left */
    460460                        if (position > 0) {
    461                                 putchar('\b');
     461                                putwchar('\b');
    462462                                position--;
    463463                        }
     
    468468                        /* Right */
    469469                        if (position < wstr_length(current)) {
    470                                 putchar(current[position]);
     470                                putwchar(current[position]);
    471471                                position++;
    472472                        }
Note: See TracChangeset for help on using the changeset viewer.