logger.prompt with defaultValue if no input is provided, keeps waiting until we provide some input in Windows Powershell
codesculpture opened this issue · comments
Executing the below example would keep wait (forever) until u actually type something and hit enter making the defaultValue useless.
Since defaultValue should be replace with the name
if there is no input received from stdin
This happens only on powershell (works fine on git bash)
Somehow, it keeping waiting forever until there is some input
import 'package:mason_logger/mason_logger.dart';
void main() {
final logger = Logger();
final name = logger.prompt(
'Your Name',
defaultValue: 'Cow',
);
print(name);
}
Looks like a duplicate of #1189. Can we close this one?
Sorry, dint noticed that. Yes can be closed.