How to output my ruby commandline text in different colours

后端 未结 10 1763
青春惊慌失措
青春惊慌失措 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:41

    Check out the following libraries:

    http://www.gnu.org/software/ncurses/ncurses.html

    https://github.com/JEG2/highline

    http://coderay.rubychan.de/

提交回复
热议问题