diff --git a/Readme.md b/Readme.md index 6dfbe835..6f71f195 100644 --- a/Readme.md +++ b/Readme.md @@ -137,7 +137,6 @@ Here's what's on my todo list - Add an easy way to define info prefixes at launch. - Cleanup - Add options to bold other text in the script (info, underline, colons) -- Fix linewrapping flag with tmux - Fix issues with multiline prompts diff --git a/fetch.sh b/fetch.sh index 910562dc..b350f50d 100755 --- a/fetch.sh +++ b/fetch.sh @@ -526,15 +526,15 @@ fi # Padding pad=$(printf "%${padding}s") +# Hide the terminal cursor while we print the info +tput civis + # Clear terminal before printing anything clear # Underline title with length of title [ $underline == "on" ] && uline=$(printf %"${#title}"s |tr " " "$underline_char") -# Hide the terminal cursor while we print the info -tput civis - # Disable line wrap # Checks to see if we're in a tmux/screen session. [ $linewrap == "off" ] && printf '\e[?7l' @@ -568,6 +568,7 @@ printf "\n" [ $linewrap == "off" ] && printf '\e[?7h' # If w3mimgviewer is found Display the image +sleep .02 if type -p /usr/lib/w3m/w3mimgdisplay >/dev/null 2>&1; then printf "0;1;$xoffset;$yoffset;$imgsize;$imgsize;;;;;$img\n4;\n3;" |\ /usr/lib/w3m/w3mimgdisplay