bchao1 / bullet

🚅 Interactive prompts made simple. Build a prompt like stacking blocks.
https://pypi.org/project/bullet/
MIT License
3.55k stars 113 forks source link

Allow to set a default value for Inputs #39

Closed hugoalvarado closed 5 years ago

hugoalvarado commented 5 years ago

Allow to set a default value for Inputs. Pressing enter will use the pre-defined default which is displayed in square brackets after the input question. Replaces single quotes for double quotes for consistency. Ie:

Screen Shot 2019-03-26 at 10 50 04 PM
Input("Who are you? ",
            default = "Batman",
            word_color = colors.foreground["yellow"]),