From 0be5f01291e70a2d8e4f70b7673efa330f77a261 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 30 Oct 2016 14:08:48 +1100 Subject: [PATCH] Image: If terminal width is 0, fallback to ascii mode --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 1244e4e0..a5cec3c1 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" ] || ([ "$no_esc" == 1 ] && [ "$image_backend" != "tycat" ]); then + if [ ! -f "$img" ] || [ "$term_width" == 0 ] || ([ "$no_esc" == 1 ] && [ "$image_backend" != "tycat" ]); then image="ascii" getascii