Changeset aca4a04 in mainline
- Timestamp:
- 2012-07-10T12:38:05Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 550af2b
- Parents:
- f0d7bd9
- Location:
- kernel/generic
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/prompt.h
rf0d7bd9 raca4a04 40 40 #define MAX_TAB_HINTS 37 41 41 42 extern bool console_prompt_display_all_hints(indev_t *, size_t); 42 43 extern bool console_prompt_more_hints(indev_t *, size_t *); 43 44 -
kernel/generic/src/console/kconsole.c
rf0d7bd9 raca4a04 231 231 /* If possible completions are more than MAX_TAB_HINTS, ask user whether to display them or not. */ 232 232 if (found > MAX_TAB_HINTS) { 233 printf("\nDisplay all %zu possibilities? (y or n)", found); 234 wchar_t display; 235 do { 236 display = indev_pop_character(indev); 237 } while (display != 'y' && display != 'n' && display != 'Y' && display != 'N'); 238 continue_showing_hints = (display == 'y') || (display == 'Y'); 233 printf("\n"); 234 continue_showing_hints = console_prompt_display_all_hints(indev, found); 239 235 } 240 236 -
kernel/generic/src/console/prompt.c
rf0d7bd9 raca4a04 39 39 #include <console/prompt.h> 40 40 41 bool console_prompt_display_all_hints(indev_t *indev, size_t hints) 42 { 43 printf("Display all %zu possibilities? (y or n)", hints); 44 45 while (true) { 46 wchar_t answer = indev_pop_character(indev); 47 48 if (answer == 'y' || answer == 'Y') { 49 printf(" y"); 50 return true; 51 } 52 53 if (answer == 'n' || answer == 'N') { 54 printf(" n"); 55 return false; 56 } 57 } 58 } 59 41 60 bool console_prompt_more_hints(indev_t *indev, size_t *display_hints) 42 61 { -
kernel/generic/src/debug/symtab.c
rf0d7bd9 raca4a04 255 255 /* If possible completions are more than MAX_TAB_HINTS, ask user whether to display them or not. */ 256 256 if (found > MAX_TAB_HINTS) { 257 printf("\nDisplay all %zu possibilities? (y or n)", found); 258 wchar_t display; 259 do { 260 display = indev_pop_character(indev); 261 } while (display != 'y' && display != 'n' && display != 'Y' && display != 'N'); 262 continue_showing_hints = (display == 'y') || (display == 'Y'); 257 printf("\n"); 258 continue_showing_hints = console_prompt_display_all_hints(indev, found); 263 259 } 264 260
Note:
See TracChangeset
for help on using the changeset viewer.