// GetPassword gets a line with the prefix and doesn't echo input.

GetPassword gets a line with the prefix and doesn't echo input.
// GetPassword gets a line with the prefix and doesn ' t echo input .
func (term *Terminal) GetPassword(prefix string) (string, error) {
	if !term.supported {
		return term.simplePrompt(prefix)
	}
	buf := NewBuffer(prefix, term.Out, false)
	return term.password(buf, term.In)
}
func ( term * Terminal ) GetPassword ( prefix string ) ( string , error ) { if ! term . supported { return term . simplePrompt ( prefix ) } buf := NewBuffer ( prefix , term . Out , false ) return term . password ( buf , term . In ) }
GetPassword gets a line with the prefix and doesn't echo input.
GetPassword gets a line with the prefix and doesn ' t echo input .