Closed iikira closed 6 years ago
Whether password or not, any prompt that is wider than the terminal causes liner to use fallback mode.
Can I suggest printing the lines you want before the password prompt separately, and making sure you use a short string as the password prompt?
alright...
When the password prompt string is too long, and wrap to a new line, the input typed is displayed.
The input typed is not displayed.
import ( "github.com/peterh/liner" "strings" )
func main() { line := liner.NewLiner() line.PasswordPrompt(strings.Repeat("-", 200)) line.Close() }