Changeset 8a9a41e in mainline for uspace/app/tester/print/print4.c


Ignore:
Timestamp:
2021-10-24T08:28:43Z (2 years ago)
Author:
GitHub <noreply@…>
Children:
f628215
Parents:
2ce943a (diff), cd981f2a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Erik Kučák <35500848+Riko196@…> (2021-10-24 08:28:43)
git-committer:
GitHub <noreply@…> (2021-10-24 08:28:43)
Message:

Merge branch 'HelenOS:master' into master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/print/print4.c

    r2ce943a r8a9a41e  
    11/*
     2 * Copyright (c) 2021 Jiri Svoboda
    23 * Copyright (c) 2009 Martin Decky
    34 * All rights reserved.
     
    2728 */
    2829
     30#include <codepage/cp437.h>
    2931#include <stdio.h>
    3032#include <stddef.h>
     
    5153        }
    5254
    53         TPRINTF("\nExtended ASCII characters (128 - 255) using printf(\"%%lc\"):\n");
     55        /*
     56         * Print entire code page 437 (in Unicode)
     57         *
     58         * The purpose of this test is to verify that the EGA display
     59         * driver can correctly map every code page 437 character back
     60         * from Unicode and display it.
     61         *
     62         * With a Unicode-capable display this will just give you a bit
     63         * of nostalgia.
     64         */
     65        TPRINTF("\nCode page 437 characters (converted to Unicode):\n");
    5466
    55         for (group = 4; group < 8; group++) {
     67        for (group = 0; group < 8; group++) {
    5668                TPRINTF("%#x: ", group << 5);
    5769
    5870                uint8_t index;
    5971                for (index = 0; index < 32; index++)
    60                         TPRINTF("%lc", (wint_t) ((group << 5) + index));
     72                        TPRINTF("%lc", cp437_decode((group << 5) + index));
    6173
    6274                TPRINTF("\n");
Note: See TracChangeset for help on using the changeset viewer.