Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (17 sloc) 257 Bytes
#!/bin/bash
C1='\e[1;33m'
C2='\e[1;32m'
function puts {
if read -r line; then
echo -en "$1\n$line";
else
echo -en '\e[0m\n';
exit 0
fi
}
read -r line;
echo -en "$C1$line";
while true; do
puts $C2
puts $C1
done