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?
W dniu 19 kwietnia 2012 17:08 użytkownik gmspro gmspro [email protected] napisał:
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…
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?