Changeset 9b2e20c in mainline for uspace/app/tester/print/print4.c
- Timestamp:
- 2021-08-25T13:59:41Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ff6e91b
- Parents:
- c21cc26
- git-author:
- Jiri Svoboda <jiri@…> (2021-08-24 17:59:34)
- git-committer:
- Jiri Svoboda <jiri@…> (2021-08-25 13:59:41)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/print/print4.c
rc21cc26 r9b2e20c 1 1 /* 2 * Copyright (c) 2021 Jiri Svoboda 2 3 * Copyright (c) 2009 Martin Decky 3 4 * All rights reserved. … … 27 28 */ 28 29 30 #include <codepage/cp437.h> 29 31 #include <stdio.h> 30 32 #include <stddef.h> … … 51 53 } 52 54 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"); 54 66 55 for (group = 4; group < 8; group++) {67 for (group = 0; group < 8; group++) { 56 68 TPRINTF("%#x: ", group << 5); 57 69 58 70 uint8_t index; 59 71 for (index = 0; index < 32; index++) 60 TPRINTF("%lc", (wint_t)((group << 5) + index));72 TPRINTF("%lc", cp437_decode((group << 5) + index)); 61 73 62 74 TPRINTF("\n");
Note:
See TracChangeset
for help on using the changeset viewer.