That prints 'Hello World' on white background with normal font size.
How can i make the font size bigger with black background and with green
font color like we can do in gnome-terminal from
Colors.
Is it possible to change color of font and background color of terminal
with ruby?
puts 'Hello World." That prints 'Hello World' on white background with normal font size. How can i make the font size bigger with black background and with green font color like we can do in gnome-terminal from Edit>Preferences>Colors. Is it possible to change color of font and background color of terminal with ruby?
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).
Has anyone got this to work for (all) ruby output? Like in a bashrc or
something?
It'd be nice to have rake output, and the like, be escaped automatically..
···
On Thu, Apr 19, 2012 at 11:34 AM, gmspro gmspro <lists@ruby-forum.com> wrote:
How can i set the text color to light green? Not the 32 only.
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 ';'
···
On Thu, Apr 19, 2012 at 10:08 AM, gmspro gmspro <lists@ruby-forum.com> wrote:
I'm trying to do 'green font/texts on black background'.