mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-11-03 19:38:26 +00:00
Suppress tput error output
This commit is contained in:
1 parent
26ead3322b
commit
e539253c6c
37 files changed
+362
-362
No files matched your search
+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
|
||||
|
||||
Reference in new issue
Block a user