From f19617cef921fd87d9c796be72a268a98a09ce4b Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 27 Mar 2016 21:07:57 +1100 Subject: [PATCH] Don't clear highlighting --- neofetch | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/neofetch b/neofetch index a187d605..ffc0176f 100755 --- a/neofetch +++ b/neofetch @@ -2316,35 +2316,35 @@ colors () { } setcolors () { - c1="\033[0m\033[3${1}m" - c2="\033[0m\033[3${2}m" - c3="\033[0m\033[3${3}m" - c4="\033[0m\033[3${4}m" - c5="\033[0m\033[3${5}m" - c6="\033[0m\033[3${6}m" + c1="\033[3${1}m" + c2="\033[3${2}m" + c3="\033[3${3}m" + c4="\033[3${4}m" + c5="\033[3${5}m" + c6="\033[3${6}m" if [ "${colors[0]}" == "distro" ]; then - title_color="\033[0m\033[3${1}m" - at_color="\033[0m\033[37m" - underline_color="\033[0m\033[37m" - subtitle_color="\033[0m\033[3${2}m" - colon_color="\033[0m\033[37m" - info_color="\033[0m\033[37m" + title_color="\033[3${1}m" + at_color="\033[37m" + underline_color="\033[37m" + subtitle_color="\033[3${2}m" + colon_color="\033[37m" + info_color="\033[37m" # If the second color is white use the first for the subtitle - [ "$2" == 7 ] && subtitle_color="\033[0m\033[3${1}m" + [ "$2" == 7 ] && subtitle_color="\033[3${1}m" else - title_color="\033[0m\033[3${colors[0]}m" - at_color="\033[0m\033[3${colors[1]}m" - underline_color="\033[0m\033[3${colors[2]}m" - subtitle_color="\033[0m\033[3${colors[3]}m" - colon_color="\033[0m\033[3${colors[4]}m" - info_color="\033[0m\033[3${colors[5]}m" + title_color="\033[3${colors[0]}m" + at_color="\033[3${colors[1]}m" + underline_color="\033[3${colors[2]}m" + subtitle_color="\033[3${colors[3]}m" + colon_color="\033[3${colors[4]}m" + info_color="\033[3${colors[5]}m" fi } color () { - printf "%b%s" "\033[0m\033[3${1}m" + printf "%b%s" "\033[3${1}m" }