terminal-in-react icon indicating copy to clipboard operation
terminal-in-react copied to clipboard

change colors of text in print()?

Open zilahir opened this issue 7 years ago • 2 comments

hey!

Is there a way to change the color of a text printed with the method print() in a defined command?

I have the prompt set to prompt="#fff" but there are some cases, where i would like to overwrite this, to whatever else color.

is it possible in any way? :)

Thank you,

zilahir avatar Oct 09 '18 10:10 zilahir

BUMP!

MahmudQasem avatar Dec 16 '20 14:12 MahmudQasem

I tried using a tag to printline api but it showed [object Object] instead of the text. this.api.printLine(<span>{msg}</span>); Would be cool to get that working...

For some reason I was able to get this working using an updateLine api I added here

With: this.api.updateLine(lineNumber, (<span className={className}>{output}</span>));

jasoncodes42 avatar Jun 23 '22 05:06 jasoncodes42