Ignore:
File:
1 edited

Legend:

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

    r9b2e20c r28a5ebd  
    11/*
    2  * Copyright (c) 2021 Jiri Svoboda
    32 * Copyright (c) 2009 Martin Decky
    43 * All rights reserved.
     
    2827 */
    2928
    30 #include <codepage/cp437.h>
    3129#include <stdio.h>
    3230#include <stddef.h>
     
    5351        }
    5452
    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");
     53        TPRINTF("\nExtended ASCII characters (128 - 255) using printf(\"%%lc\"):\n");
    6654
    67         for (group = 0; group < 8; group++) {
     55        for (group = 4; group < 8; group++) {
    6856                TPRINTF("%#x: ", group << 5);
    6957
    7058                uint8_t index;
    7159                for (index = 0; index < 32; index++)
    72                         TPRINTF("%lc", cp437_decode((group << 5) + index));
     60                        TPRINTF("%lc", (wint_t) ((group << 5) + index));
    7361
    7462                TPRINTF("\n");
Note: See TracChangeset for help on using the changeset viewer.