mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-10-05 15:53:29 +07:00
Suppress tput error output
This commit is contained in:
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+2
-2
@@ -20,8 +20,8 @@ uitype='UI'
|
||||
## DEFINE COLORS
|
||||
|
||||
# probably don't change these
|
||||
bold=`tput bold`
|
||||
reset=`tput sgr0`
|
||||
bold=`tput bold 2> /dev/null`
|
||||
reset=`tput sgr0 2> /dev/null`
|
||||
|
||||
# you can change these
|
||||
lc="${reset}${bold}" # labels
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput md)"
|
||||
black="$(tput AF 0)"
|
||||
red="$(tput AF 1)"
|
||||
green="$(tput AF 2)"
|
||||
yellow="$(tput AF 3)"
|
||||
blue="$(tput AF 4)"
|
||||
magenta="$(tput AF 5)"
|
||||
cyan="$(tput AF 6)"
|
||||
white="$(tput AF 7)"
|
||||
reset="$(tput me)"
|
||||
bold="$(tput md 2> /dev/null)"
|
||||
black="$(tput AF 0 2> /dev/null)"
|
||||
red="$(tput AF 1 2> /dev/null)"
|
||||
green="$(tput AF 2 2> /dev/null)"
|
||||
yellow="$(tput AF 3 2> /dev/null)"
|
||||
blue="$(tput AF 4 2> /dev/null)"
|
||||
magenta="$(tput AF 5 2> /dev/null)"
|
||||
cyan="$(tput AF 6 2> /dev/null)"
|
||||
white="$(tput AF 7 2> /dev/null)"
|
||||
reset="$(tput me 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -48,16 +48,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0 0 0 2>/dev/null)"
|
||||
red="$(tput setaf 1 0 0 2>/dev/null)"
|
||||
green="$(tput setaf 2 0 0 2>/dev/null)"
|
||||
yellow="$(tput setaf 3 0 0 2>/dev/null)"
|
||||
blue="$(tput setaf 4 0 0 2>/dev/null)"
|
||||
magenta="$(tput setaf 5 0 0 2>/dev/null)"
|
||||
cyan="$(tput setaf 6 0 0 2>/dev/null)"
|
||||
white="$(tput setaf 7 0 0 2>/dev/null)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null 0 0 2>/dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null 0 0 2>/dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null 0 0 2>/dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null 0 0 2>/dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null 0 0 2>/dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null 0 0 2>/dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null 0 0 2>/dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null 0 0 2>/dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
+10
-10
@@ -50,16 +50,16 @@ ui="$(basename "${ui}")"
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
bold="$(tput bold 2> /dev/null)"
|
||||
black="$(tput setaf 0 2> /dev/null)"
|
||||
red="$(tput setaf 1 2> /dev/null)"
|
||||
green="$(tput setaf 2 2> /dev/null)"
|
||||
yellow="$(tput setaf 3 2> /dev/null)"
|
||||
blue="$(tput setaf 4 2> /dev/null)"
|
||||
magenta="$(tput setaf 5 2> /dev/null)"
|
||||
cyan="$(tput setaf 6 2> /dev/null)"
|
||||
white="$(tput setaf 7 2> /dev/null)"
|
||||
reset="$(tput sgr0 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# you can change these
|
||||
|
||||
Reference in New Issue
Block a user