From: Eric Christopherson Date: 2012-04-21T02:26:04+09:00 Subject: Re: How can i make the colorful font with black background for puts? On Thu, Apr 19, 2012 at 10:08 AM, gmspro gmspro wrote: > I'm trying to do 'green font/texts on black background'. > > printf "\033[40m\033[37mBlack Background\033[0m\n" > > But that green is not brighter. > I'm trying to do something like, > http://kpumuk.info/ruby-on-rails/colorizing-console-ruby-script-output/ > > ESC-1, 32;40 > > How can i rewrite this printf "\033[40m\033[37mBlack > Background\033[0m\n" for escape one(1) ? puts "\033[40;37;1mBlack Background\033[0m" Notes: - puts appends "\n" automatically - escape sequence "\033[1m" is used for bright (high intensity) - separate escape sequences can be combined by changing the trailing 'm' of all but the last one to ';'