I've seen the hits you offered. However, I couldn't see any examples with the hits. Besides, the version of termui I used is v3, which is the latest version. There isn't any functions about the input. The second is that I want to print something as normal after exit the UI.
Thanks for your replying and information. Max Brian Candler於 2020年4月17日星期五 UTC+8下午6時52分01秒寫道: > > Well, it's always good to fix the errors :-) > > In short, you'll need to get a string from termui, and then use fmt.Sscanf > instead of fmt.Scanf. > > A quick google for "go termui text input" turns up these as the first two > hits: > https://github.com/gizak/termui/issues/34 > https://github.com/gizak/termui/pull/129 > > They answer your question. The second is a contributed text input widget > which hasn't been merged into the mainline source, but you could use termui > from this fork. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/265c5da1-f4a3-46bd-bd00-2599c99a68c8%40googlegroups.com.