I'm working on a project where I will need to prompt the user for some information. I'd like the answer to be "pre-populated" on the screen and if the user would like they can backspace over it and type in a different answer or just hit enter as if they typed in the default value themself.
I've played around with <STDIN> but I cannot make it work exactly as I'd like. I like the question to look like this:
and type in another answer or just hit enter.
Does anyone have any ideas or other suggested methods to use?