func supportsEditing() bool {
	term := os.Getenv("TERM")
	for _, t := range unsupported {
		if t == term {
			return false
		}
	}
	return true
}
supportsEditing checks if the terminal supports ansi escapes.
package prompt
import (
	"os"
	"golang.org/x/sys/unix"
)
var unsupported = []string{"", "dumb", "cons25"}