nitin42 / terminal-in-react

👨‍💻 A component that renders a terminal
http://terminal-in-react.surge.sh/
MIT License
2.12k stars 151 forks source link

Highlight words in print function #97

Open tusharojha opened 3 years ago

tusharojha commented 3 years ago

Hi @nitin42! I really liked this package for React and just wanted to know that can we use highlight some text inside the print command?

For example:

commands={{
   npm: (args, print, runCommand) => print("npm version 0.2.5"),
}}

I want to change the color of 0.2.5 to blue and the remaining text color to white.