Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
More or less like this
#!/usr/bin/env bash
SETCOLOR_SUCCESS="echo -en \\033[1;32m"
SETCOLOR_FAILURE="echo -en \\033[1;31m"
SETCOLOR_WARNING="echo -en \\033[1;33m"
SETCOLOR_NORMAL="echo -en \\033[0;39m"
${SETCOLOR_SUCCESS}
echo "Connected"
${SETCOLOR_NORMAL}
${SETCOLOR_FAILURE}
echo "Not connected"
${SETCOLOR_NORMAL}
${SETCOLOR_WARNING}
echo "Some warning"
${SETCOLOR_NORMAL}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question