runeIndex is a rune-level strings.Index: first occurrence of needle in haystack, or -1. promptInput works in runes throughout because textarea's cursor is rune-addressed (column = rune count, not byte count).
(haystack, needle []rune)
Source from the content-addressed store, hash-verified