Commit 2e0405a0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-sh-functions: add set_color

parent 420ca8b6
...@@ -84,6 +84,14 @@ set_boldcolor() ...@@ -84,6 +84,14 @@ set_boldcolor()
} |tput -S } |tput -S
} }
set_color()
{
[ "$USETTY" = "1" ] || return
{
echo setaf $1
} |tput -S
}
restore_color() restore_color()
{ {
[ "$USETTY" = "1" ] || return [ "$USETTY" = "1" ] || return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment