Nima
Posted on September 23, 2022
You can use 'colortheme' gem to change the color of the text in Ruby.
install with gem
gem install colortheme
install with git hub
git clone https://github.com/nimacpp/colortheme.git
cd colortheme
gem build colortheme.gemspec
gem install colortheme*.gem
how can use
first include colortheme in your code :
require 'colortheme'
then you can use it like this :
require 'colortheme'
puts "hello world".green
output :
list of colors in colortheme :
💖 💪 🙅 🚩
Nima
Posted on September 23, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.