Coloring the shell
Coloring the screen in shellscripts is very much like doing so in batch files (.bat). Maybe even equal. The idea is to use 'echo -e "\033[..."'. The -e enable interpretation of backslash-escaped characters. \NNN is the ascii char whose code is NNN octal. We want an 'escape' 033octal... Then, after [ we place the ansi control code the video will interpret. To color, just writer 3x or 4x where x is the color number. Anyway, run this code that you will understand and it is nice.
The code came from here. I just added some comments and tests.
Enought to start playing.
[ ]'s,
fred
The code came from here. I just added some comments and tests.
Enought to start playing.
[ ]'s,
fred
1 Comments:
Whats new Today
I love ebooks and am glad to be on your site. If you want to find out more about......ebooks then go visit http://lifeb4u.com......You wont be disapointed..
Postar um comentário
<< Home