Commit 5959cb1b authored by Dylan Araps's avatar Dylan Araps

Image: If terminal size is less than or equal to 10 fallback to ascii mode

parent 35d0fd41
...@@ -2025,7 +2025,7 @@ getimage() { ...@@ -2025,7 +2025,7 @@ getimage() {
# If $img isn't a file or the terminal doesn't support xterm escape sequences, # If $img isn't a file or the terminal doesn't support xterm escape sequences,
# fallback to ascii mode. # 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" image="ascii"
getascii getascii
......
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