From: "Bartosz Dziewoński" Date: 2012-04-20T00:21:11+09:00 Subject: Re: How can i make the colorful font with black background for puts? W dniu 19 kwietnia 2012 17:08 użytkownik gmspro gmspro napisał: > 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) ? These technique (ANSI escape codes) only work on Linux flavors. To make it work on Windows, you need to run your Ruby script from inside some better console than default cmd - I suggest ansicon (google it). -- Matma Rex