mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
Clear the terminal using printf instead of clear
This commit is contained in:
7
fetch.sh
7
fetch.sh
@@ -883,11 +883,8 @@ printinfo () {
|
|||||||
# Get image
|
# Get image
|
||||||
[ "$images" == "on" ] && getimage
|
[ "$images" == "on" ] && getimage
|
||||||
|
|
||||||
# Hide the terminal cursor
|
# Clear the terminal and hide the cursor
|
||||||
printf "\e[?25l"
|
printf "\e[?25l\033c\e[?25l"
|
||||||
|
|
||||||
# Clear the terminal
|
|
||||||
clear
|
|
||||||
|
|
||||||
# Disable line wrap
|
# Disable line wrap
|
||||||
[ $line_wrap == "off" ] && printf '\e[?7l'
|
[ $line_wrap == "off" ] && printf '\e[?7l'
|
||||||
|
Reference in New Issue
Block a user