Open catc opened 4 years ago
Allow for icons.SelectFocus.Text to have a length > 1 and still align options correctly.
icons.SelectFocus.Text
For example:
func setIcons(icons *survey.IconSet) { icons.SelectFocus.Text = "🌿" }
results in misaligned select options:
This might be a little more difficult for emojis (in my case, 🌿 is 4 bytes but has a width of 2 in the terminal) - https://github.com/rivo/uniseg might come in useful.
Thanks for reporting this @catc!
Allow for
icons.SelectFocus.Text
to have a length > 1 and still align options correctly.For example:
results in misaligned select options:
This might be a little more difficult for emojis (in my case, 🌿 is 4 bytes but has a width of 2 in the terminal) - https://github.com/rivo/uniseg might come in useful.