chzyer / readline

Readline is a pure go(golang) implementation for GNU-Readline kind library
MIT License
2.08k stars 275 forks source link

Prefill user input #101

Closed mrsinham closed 7 years ago

mrsinham commented 7 years ago

This new feature allows to prefill user input with predefined response. If you prefill with "foobar" the next time the library will do a ReadLine() you will have :

[prompt] > foobar[cursor here]

With foobar editable as the user input.