go-prompt icon indicating copy to clipboard operation
go-prompt copied to clipboard

Write colored text

Open john8329 opened this issue 7 years ago • 0 comments

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

john8329 avatar Nov 04 '18 17:11 john8329