terminal-in-react
terminal-in-react copied to clipboard
change colors of text in print()?
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,
BUMP!
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>));