Changes in uspace/app/tester/print/print4.c [9b2e20c:28a5ebd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/print/print4.c
r9b2e20c r28a5ebd 1 1 /* 2 * Copyright (c) 2021 Jiri Svoboda3 2 * Copyright (c) 2009 Martin Decky 4 3 * All rights reserved. … … 28 27 */ 29 28 30 #include <codepage/cp437.h>31 29 #include <stdio.h> 32 30 #include <stddef.h> … … 53 51 } 54 52 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"); 66 54 67 for (group = 0; group < 8; group++) {55 for (group = 4; group < 8; group++) { 68 56 TPRINTF("%#x: ", group << 5); 69 57 70 58 uint8_t index; 71 59 for (index = 0; index < 32; index++) 72 TPRINTF("%lc", cp437_decode((group << 5) + index));60 TPRINTF("%lc", (wint_t) ((group << 5) + index)); 73 61 74 62 TPRINTF("\n");
Note:
See TracChangeset
for help on using the changeset viewer.