peterh / liner

Pure Go line editor with history, inspired by linenoise
MIT License
1.04k stars 132 forks source link

Password prompt #23

Closed ElPincheTopo closed 9 years ago

ElPincheTopo commented 9 years ago

Before I start working on it, I wanted to know if you will be willing to accept a push request implementing a password prompt.

Just a prompt that doesn't supports fancy line editing but by default doesn't print what you are entering, like Unix password prompt. Maybe in windows print * instead of not printing anything.

peterh commented 9 years ago

My main concern is "TERM=dumb" environments and unsupported OSes.

As long as the password prompt function returns an error in those environments instead of using the normal fallback, I think I'd be fine with adding it.

ElPincheTopo commented 9 years ago

Great! I'll work on it.