func (term *Terminal) GetPassword(prefix string) (string, error) {
	if !term.isTerm {
		return term.simplePrompt(prefix)
	}

	buf := NewBuffer(prefix, term.Out, false)
	return term.password(buf, NewAnsiReader(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.
// GetPassword gets a line with the prefix and doesn ' t echo input .
func (term *Terminal) GetPassword(prefix string) (string, error) {
	if !term.isTerm {
		return term.simplePrompt(prefix)
	}
	buf := NewBuffer(prefix, term.Out, false)
	return term.password(buf, NewAnsiReader(term.In))
}
func ( term * Terminal ) GetPassword ( prefix string ) ( string , error ) { if ! term . isTerm { return term . simplePrompt ( prefix ) } buf := NewBuffer ( prefix , term . Out , false ) return term . password ( buf , NewAnsiReader ( 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 .