#197·promptui

BlockCursor is broken on macOS

Author: synfinaticCreated Dec 16, 2021Updated Dec 26, 2023

Tested with both iTerm2 3.4.12 and Terminal 2.10 on macOS 10.15.7 with promptui 0.9.0 and Go 1.17.5

using:

	prompt := promptui.Prompt{
		Label:    "SSO Instance Name (DefaultSSO)",
		Validate: validateSSOName,
		Default: "Default",
		Pointer:  promptui.BlockCursor,
	}

Generates the following prompt:

SSO Instance Name (DefaultSSO): \e[7mD\e[0mefault

DefaultCursor is very painful when there is a default value since it obscures the first character, so right now that only leaves PipeCursor which is very hard to see and seems very non-standard.