go-prompt
go-prompt copied to clipboard
Write colored text
Suggestions
Hi it seems there isn't a way to write colored text in the output from the program, I found this snippet in the code which points to the Render obj but it's not published:
r.out.SetColor(r.prefixTextColor, r.prefixBGColor, false)
r.out.WriteStr(r.getCurrentPrefix())
r.out.SetColor(DefaultColor, DefaultColor, false)
How can I get the current Render from my program? Is there another convenient way for writing colored text?
Thanks a lot