diff --git a/bash/tput_colours_etc.bash b/bash/tput_colours_etc.bash index e3d54bd..1a08867 100644 --- a/bash/tput_colours_etc.bash +++ b/bash/tput_colours_etc.bash @@ -21,6 +21,13 @@ echo -e "\n${fgBlue}Foo${imma_variable}${txReset}" # Example 2: Output Foobar, with empty line before and after, in red using printf. printf '\n%s%s%s%s\n\n' ${fgRed} 'Foo' ${imma_variable} ${txReset} # need extra newline as printf doesn't give one by default +# Example 3: Set output for multiple lines, then reset after you're done, i.e. not embedded in single output. +echo -en "${fgCyan}" # set your colour, without a newline +echo "foobar2" # output +echo "foobar3" # multiple +echo $imma_variable # things +echo -en "${txReset}" # and finally reset + # Some other settings I haven't tested - stole straight off Teh Intewebs