Changeset ef8bcc6 in mainline for uspace/app
- Timestamp:
- 2009-06-15T21:46:21Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 953769f
- Parents:
- c07af37
- Location:
- uspace/app
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/input.c
rc07af37 ref8bcc6 148 148 char line[INPUT_MAX]; 149 149 150 fflush(stdout); 150 151 console_set_style(fphone(stdout), STYLE_EMPHASIS); 151 152 printf("%s", usr->prompt); 153 fflush(stdout); 152 154 console_set_style(fphone(stdout), STYLE_NORMAL); 153 155 -
uspace/app/tester/console/console1.c
rc07af37 ref8bcc6 52 52 53 53 printf("Style test: "); 54 fflush(stdout); 54 55 console_set_style(fphone(stdout), STYLE_NORMAL); 55 56 printf("normal "); 57 fflush(stdout); 56 58 console_set_style(fphone(stdout), STYLE_EMPHASIS); 57 59 printf("emphasized"); 60 fflush(stdout); 58 61 console_set_style(fphone(stdout), STYLE_NORMAL); 59 62 printf(".\n"); … … 62 65 for (j = 0; j < 2; j++) { 63 66 for (i = COLOR_BLACK; i <= COLOR_WHITE; i++) { 67 fflush(stdout); 64 68 console_set_color(fphone(stdout), i, COLOR_WHITE, 65 69 j ? CATTR_BRIGHT : 0); 66 70 printf(" %s ", color_name[i]); 67 71 } 72 fflush(stdout); 68 73 console_set_color(fphone(stdout), COLOR_BLACK, COLOR_WHITE, 0); 69 74 putchar('\n'); … … 73 78 for (j = 0; j < 2; j++) { 74 79 for (i = COLOR_BLACK; i <= COLOR_WHITE; i++) { 80 fflush(stdout); 75 81 console_set_color(fphone(stdout), COLOR_WHITE, i, 76 82 j ? CATTR_BRIGHT : 0); 77 83 printf(" %s ", color_name[i]); 78 84 } 85 fflush(stdout); 79 86 console_set_color(fphone(stdout), COLOR_BLACK, COLOR_WHITE, 0); 80 87 putchar('\n'); … … 84 91 85 92 for (i = 0; i < 255; i += 16) { 93 fflush(stdout); 86 94 console_set_rgb_color(fphone(stdout), 0xffffff, i << 16); 87 95 putchar('X'); 88 96 } 97 fflush(stdout); 89 98 console_set_color(fphone(stdout), COLOR_BLACK, COLOR_WHITE, 0); 90 99 putchar('\n'); 91 100 92 101 for (i = 0; i < 255; i += 16) { 102 fflush(stdout); 93 103 console_set_rgb_color(fphone(stdout), 0xffffff, i << 8); 94 104 putchar('X'); 95 105 } 106 fflush(stdout); 96 107 console_set_color(fphone(stdout), COLOR_BLACK, COLOR_WHITE, 0); 97 108 putchar('\n'); 98 109 99 110 for (i = 0; i < 255; i += 16) { 111 fflush(stdout); 100 112 console_set_rgb_color(fphone(stdout), 0xffffff, i); 101 113 putchar('X'); 102 114 } 115 fflush(stdout); 103 116 console_set_color(fphone(stdout), COLOR_BLACK, COLOR_WHITE, 0); 104 117 putchar('\n'); -
uspace/app/tetris/screen.c
rc07af37 ref8bcc6 78 78 static void start_standout(uint32_t color) 79 79 { 80 fflush(stdout); 80 81 console_set_rgb_color(fphone(stdout), 0xf0f0f0, color); 81 82 } … … 83 84 static void resume_normal(void) 84 85 { 86 fflush(stdout); 85 87 console_set_rgb_color(fphone(stdout), 0, 0xf0f0f0); 86 88 } … … 115 117 void moveto(int r, int c) 116 118 { 119 fflush(stdout); 117 120 console_goto(fphone(stdout), c, r); 118 121 }
Note:
See TracChangeset
for help on using the changeset viewer.