From 08ecada71aef42e603c7c2d518dda8851726b5a3 Mon Sep 17 00:00:00 2001 From: cs127 Date: Mon, 13 Mar 2023 18:04:01 +0330 Subject: [PATCH] Check for linux console --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index de394550..cc92bc97 100755 --- a/neofetch +++ b/neofetch @@ -4806,7 +4806,8 @@ get_cols() { done # Workaround for bright background colors in the Linux framebuffer console. - (( block_range[1] < 16 )) && printf -v blocks2 '\e[5m%b\e[25m' "$blocks2" + (( block_range[1] < 16 )) && [[ "$TERM" == "linux" ]] && + printf -v blocks2 '\e[5m%b\e[25m' "$blocks2" # Convert height into spaces. printf -v block_spaces "%${block_height}s"