ANSI.sh

example script - mustrum ridcully, 09/16/2009 08:08 AM

Download (350 Bytes)

 
1
#!/bin/sh
2
3
ESC=`printf "\e"`
4
echo "normal text"
5
echo "$ESC""[4m""underlined text""$ESC""[0m"
6
echo "$ESC""[32m""green text""$ESC""[0m"
7
echo "$ESC""[7m""reversed text""$ESC""[0m"
8
echo "$ESC""[5m""blinking text""$ESC""[0m"
9
echo "$ESC""[8m""invisible text""$ESC""[0m"
10
echo "$ESC""[1m""bold text""$ESC""[0m"
11
echo "$ESC""[2m""low intensity text""$ESC""[0m"