Commit e9a08a07 authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #349 from dylanaraps/img-fix

Add a tiny sleep to fix image flashing and not drawing properly
parents 9391443e f1ac3c2f
...@@ -2261,6 +2261,9 @@ displayimage() { ...@@ -2261,6 +2261,9 @@ displayimage() {
if [ "$image" != "ascii" ]; then if [ "$image" != "ascii" ]; then
case "$image_backend" in case "$image_backend" in
"w3m") "w3m")
# Add a tiny delay to fix issues with images not
# appearing in specific terminal emulators.
sleep 0.05
printf "%b%s\n" "0;1;$xoffset;$yoffset;$width;$height;;;;;$img\n4;\n3;" |\ printf "%b%s\n" "0;1;$xoffset;$yoffset;$width;$height;;;;;$img\n4;\n3;" |\
$w3m_img_path 2>/dev/null || padding="\033[0C" $w3m_img_path 2>/dev/null || padding="\033[0C"
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment