X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=stdlib%2Fprelude.sh;h=fcd1baca903482a7fcc52d346f198db2edf7a4bf;hb=06e365e7720b9024e083f84625fb28f55c772688;hp=254c3803592a7570e11a89d15005d151dbeb19ce;hpb=490d147a899cb682af67bc5bc3eb64a9ad00985e;p=goals.git diff --git a/stdlib/prelude.sh b/stdlib/prelude.sh index 254c380..fcd1bac 100644 --- a/stdlib/prelude.sh +++ b/stdlib/prelude.sh @@ -27,22 +27,13 @@ function quoted_string () echo -n "\"$1\"" } -# For printing strings in different colours, use these functions. -function start_red () +# For printing strings in different colours. +function print_red () { - echo -ne "\x1b[1;31m" + echo -e "\x1b[1;31m$@\x1b[0m" } -function start_green () +function print_green () { - echo -ne "\x1b[0;32m" -} - -function end_colour () -{ - echo -ne "\x1b[0m" -} -function end_color () -{ - echo -ne "\x1b[0m" + echo -e "\x1b[0;32m$@\x1b[0m" }