From 5959cb1b930d488b25f08bf142c000a8af4aa0d4 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 30 Oct 2016 14:20:01 +1100 Subject: [PATCH] Image: If terminal size is less than or equal to 10 fallback to ascii mode --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index a5cec3c1..dbcd0eb9 100755 --- a/neofetch +++ b/neofetch @@ -2025,7 +2025,7 @@ getimage() { # If $img isn't a file or the terminal doesn't support xterm escape sequences, # fallback to ascii mode. - if [ ! -f "$img" ] || [ "$term_width" == 0 ] || ([ "$no_esc" == 1 ] && [ "$image_backend" != "tycat" ]); then + if [ ! -f "$img" ] || [ "$term_width" -le 10 ] || ([ "$no_esc" == 1 ] && [ "$image_backend" != "tycat" ]); then image="ascii" getascii