Ignore:
Timestamp:
2012-07-10T12:38:05Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
550af2b
Parents:
f0d7bd9
Message:

Extract common code into function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/kconsole.c

    rf0d7bd9 raca4a04  
    231231        /* If possible completions are more than MAX_TAB_HINTS, ask user whether to display them or not. */
    232232        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);
    239235        }
    240236       
Note: See TracChangeset for help on using the changeset viewer.