prin: Fix bold not working, Fix color breakage. Closes #407
This commit is contained in:
parent
e0e0c3243c
commit
6ada4c7fb8
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -2352,7 +2352,7 @@ prin() {
|
||||||
|
|
||||||
# If $2 doesn't exist we format $1 as info
|
# If $2 doesn't exist we format $1 as info
|
||||||
if [ -z "$2" ]; then
|
if [ -z "$2" ]; then
|
||||||
subtitle_color="$info_color"
|
local subtitle_color="$info_color"
|
||||||
bold=
|
bold=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -2599,7 +2599,7 @@ setcolors() {
|
||||||
|
|
||||||
color() {
|
color() {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
[0-6]) printf "%b%s" "${reset}\033[3${1}m" ;;
|
[0-6]) printf "%b%s" "${reset}${bold}\033[3${1}m" ;;
|
||||||
7 | "fg") printf "%b%s" "$reset" ;;
|
7 | "fg") printf "%b%s" "$reset" ;;
|
||||||
*) printf "%b%s" "\033[38;5;${1}m" ;;
|
*) printf "%b%s" "\033[38;5;${1}m" ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue