mirror of
https://github.com/hykilpikonna/hyfetch.git
synced 2026-06-04 06:24:41 -05:00
Clear the terminal using printf instead of clear
This commit is contained in:
parent
0d18832f71
commit
f289ccd85d
7
fetch.sh
7
fetch.sh
|
|
@ -883,11 +883,8 @@ printinfo () {
|
|||
# Get image
|
||||
[ "$images" == "on" ] && getimage
|
||||
|
||||
# Hide the terminal cursor
|
||||
printf "\e[?25l"
|
||||
|
||||
# Clear the terminal
|
||||
clear
|
||||
# Clear the terminal and hide the cursor
|
||||
printf "\e[?25l\033c\e[?25l"
|
||||
|
||||
# Disable line wrap
|
||||
[ $line_wrap == "off" ] && printf '\e[?7l'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user