\e[x;ym foo \e[m
Where:
- \e[ means begin colour
- x;y is a colour pair (refer to sources for colour codes)
- \e[m means end colour
toro@moutere:~$ echo -e "\e[0;31mfoo\e[mbar"
foobar
The -e tells echo to interpret the backslash sequences.
\e[x;ym foo \e[m
Where:
toro@moutere:~$ echo -e "\e[0;31mfoo\e[mbar"
foobar
The -e tells echo to interpret the backslash sequences.
No comments:
Post a Comment