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

This commit is contained in:
Dylan Araps 2016-10-30 14:20:01 +11:00
parent 35d0fd418d
commit 5959cb1b93
1 changed files with 1 additions and 1 deletions

View File

@ -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