// GetPrompt gets a line with the prefix and echos input.

GetPrompt gets a line with the prefix and echos input.
// GetPrompt gets a line with the prefix and echos input .
func (term *Terminal) GetPrompt(prefix string) (string, error) {
	if !term.supported {
		return term.simplePrompt(prefix)
	}
	buf := NewBuffer(prefix, term.Out, true)
	return term.prompt(buf, term.In)
}
func ( term * Terminal ) GetPrompt ( prefix string ) ( string , error ) { if ! term . supported { return term . simplePrompt ( prefix ) } buf := NewBuffer ( prefix , term . Out , true ) return term . prompt ( buf , term . In ) }
GetPrompt gets a line with the prefix and echos input.
GetPrompt gets a line with the prefix and echos input .