How to output my ruby commandline text in different colours

后端 未结 10 1778
青春惊慌失措
青春惊慌失措 2021-01-30 03:15

How can I make the puts commands I output from a commandline based ruby program colour? I would appreciated any references to how I call each different colour also.

Lets

10条回答
  •  孤街浪徒
    2021-01-30 03:45

    Check out the cli-colorize gem: http://github.com/stjohncj/cli-colorize/blob/master/README.rdoc

提交回复
热议问题