Changes in uspace/app/tester/console/console1.c [9f1362d4:a000878c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/console/console1.c
r9f1362d4 ra000878c 53 53 fflush(stdout); 54 54 console_set_style(fphone(stdout), STYLE_NORMAL); 55 printf(" 55 printf("normal "); 56 56 fflush(stdout); 57 57 console_set_style(fphone(stdout), STYLE_EMPHASIS); 58 printf(" emphasized "); 59 fflush(stdout); 60 console_set_style(fphone(stdout), STYLE_INVERTED); 61 printf(" inverted "); 62 fflush(stdout); 63 console_set_style(fphone(stdout), STYLE_SELECTED); 64 printf(" selected "); 58 printf("emphasized"); 65 59 fflush(stdout); 66 60 console_set_style(fphone(stdout), STYLE_NORMAL); 67 printf(" \n");61 printf(".\n"); 68 62 69 63 unsigned int i; … … 79 73 } 80 74 fflush(stdout); 81 console_set_ style(fphone(stdout), STYLE_NORMAL);75 console_set_color(fphone(stdout), COLOR_BLACK, COLOR_WHITE, 0); 82 76 putchar('\n'); 83 77 } … … 92 86 } 93 87 fflush(stdout); 94 console_set_ style(fphone(stdout), STYLE_NORMAL);88 console_set_color(fphone(stdout), COLOR_BLACK, COLOR_WHITE, 0); 95 89 putchar('\n'); 96 90 } … … 100 94 for (i = 0; i < 255; i += 16) { 101 95 fflush(stdout); 102 console_set_rgb_color(fphone(stdout), (255 - i) << 16, i << 16);96 console_set_rgb_color(fphone(stdout), 0xffffff, i << 16); 103 97 putchar('X'); 104 98 } … … 109 103 for (i = 0; i < 255; i += 16) { 110 104 fflush(stdout); 111 console_set_rgb_color(fphone(stdout), (255 - i) << 8, i << 8);105 console_set_rgb_color(fphone(stdout), 0xffffff, i << 8); 112 106 putchar('X'); 113 107 } … … 118 112 for (i = 0; i < 255; i += 16) { 119 113 fflush(stdout); 120 console_set_rgb_color(fphone(stdout), 255 - i, i);114 console_set_rgb_color(fphone(stdout), 0xffffff, i); 121 115 putchar('X'); 122 116 } 123 117 fflush(stdout); 124 console_set_ style(fphone(stdout), STYLE_NORMAL);118 console_set_color(fphone(stdout), COLOR_BLACK, COLOR_WHITE, 0); 125 119 putchar('\n'); 126 120 }
Note:
See TracChangeset
for help on using the changeset viewer.