Check for linux console

This commit is contained in:
cs127 2023-03-13 18:04:01 +03:30
parent 4d6743b886
commit 08ecada71a

View file

@ -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"