Cols: Bypass info/prin
This commit is contained in:
parent
70a684597a
commit
7276ad3a65
5
neofetch
5
neofetch
|
@ -1738,7 +1738,6 @@ get_cols() {
|
||||||
if [[ "$color_blocks" == "on" ]]; then
|
if [[ "$color_blocks" == "on" ]]; then
|
||||||
# Convert the width to space chars.
|
# Convert the width to space chars.
|
||||||
printf -v block_width "%${block_width}s"
|
printf -v block_width "%${block_width}s"
|
||||||
block_width="${block_width// /.}"
|
|
||||||
|
|
||||||
# Generate the string.
|
# Generate the string.
|
||||||
for ((start; start<=end; start++)); do
|
for ((start; start<=end; start++)); do
|
||||||
|
@ -1759,9 +1758,11 @@ get_cols() {
|
||||||
# Add newlines to the string.
|
# Add newlines to the string.
|
||||||
cols="${cols%%'nl'}"
|
cols="${cols%%'nl'}"
|
||||||
cols="${cols//nl/\\n\\033[${text_padding}C${zws}}"
|
cols="${cols//nl/\\n\\033[${text_padding}C${zws}}"
|
||||||
|
|
||||||
|
printf "%b\n" "\033[${text_padding}C${cols}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unset blocks blocks2
|
unset -v blocks blocks2 cols
|
||||||
}
|
}
|
||||||
|
|
||||||
# IMAGES
|
# IMAGES
|
||||||
|
|
Reference in New Issue