Changes in kernel/generic/src/console/prompt.c [63e27ef:a35b458] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/prompt.c
r63e27ef ra35b458 52 52 assert(indev); 53 53 assert(hints > 0); 54 54 55 55 printf("Display all %zu possibilities? (y or n) ", hints); 56 56 57 57 while (true) { 58 58 wchar_t answer = indev_pop_character(indev); 59 59 60 60 if ((answer == 'y') || (answer == 'Y')) { 61 61 printf("y"); 62 62 return true; 63 63 } 64 64 65 65 if ((answer == 'n') || (answer == 'N')) { 66 66 printf("n"); … … 84 84 assert(indev); 85 85 assert(display_hints != NULL); 86 86 87 87 printf("--More--"); 88 88 while (true) { … … 95 95 break; 96 96 } 97 97 98 98 /* Stop displaying hints? */ 99 99 if ((continue_showing_hints == 'n') || … … 104 104 break; 105 105 } 106 106 107 107 /* Show one more hint? */ 108 108 if (continue_showing_hints == '\n') { … … 111 111 } 112 112 } 113 113 114 114 /* Delete the --More-- option */ 115 115 printf("\r \r"); 116 116 117 117 return *display_hints > 0; 118 118 }
Note:
See TracChangeset
for help on using the changeset viewer.