• Jonah Williams's avatar
    [flutter_tools] handle terminals that do not support single char mode in... · 039f1cf8
    Jonah Williams authored
    [flutter_tools] handle terminals that do not support single char mode in Terminal.promptForCharInput (#65418)
    
    Some terminals stdin do not support single char mode (like an emacs terminal buffer apparently). If this is the case, then the presented choice values would always have an appended newline \n which would prevent us from finding the value in the listed index (or using it as a signal for the default choice). To fix, treat '' as the default choice and always trim the choice value.
    
    While this has seemingly always been broken, it wasn't noticeable until the multi-device selection prompt was added a few months ago.
    
    Fixes #65267
    039f1cf8
Name
Last commit
Last update
..
_flutter_web_build_script Loading commit data...
flutter Loading commit data...
flutter_driver Loading commit data...
flutter_goldens Loading commit data...
flutter_goldens_client Loading commit data...
flutter_localizations Loading commit data...
flutter_test Loading commit data...
flutter_tools Loading commit data...
flutter_web_plugins Loading commit data...
fuchsia_remote_debug_protocol Loading commit data...
analysis_options.yaml Loading commit data...