/usr/bin/asciiview is in aview 1.3.0rc1-9.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78  | #!/bin/bash
# asciiview - an ascii art image browser script. Front end for aview/aaflip
clear()
{
  kill $! 2>/dev/null
  rm -rf $tmpdir 2>/dev/null
}
myconvert()
{
   if anytopnm "$1" >"$2" 2>/dev/null ; then
     exit
   elif convert -colorspace gray "$1" pgm:- 2>/dev/null ; then
     exit
   fi
   echo "Failed to convert file format to PNM by both convert and anytopnm" >&2
   while true; do
     echo "0 " 
   done
}
filenames=""
options=""
if [ "$1" = "" ]; then
  echo "$0 - an ascii art image/animation browser.
  To run this script you need aview, aaflip and NetPBM or ImageMagick.
  You may browse any graphics format supported by NetPBM or ImageMagick
  and .fli/.flc files.
  Usage:
   $0 [options] [filenames]
  type aview --help [enter] for list of options.
  "
  exit 1
fi
counter=0
while [ "$1" != "" ]; do
  case "$1" in
    "-font" | "-driver" | "-kbddriver" | "-mousedriver" | "-*width" | "-*height" | "-bright" | "-contrast" | "-gamma" | "-random" | "-dimmul" | "-boldmul")
      options="$options $1 $2"
      shift 
      shift 
      ;;
    -*)
      options="$options $1"
      shift
      ;;
    *) 
      filenames[$counter]="$1"
      counter=$(($counter+1))
      shift
      ;;
  esac
done
trap clear 0
tmpdir=`mktemp -t -d`
outfile=$tmpdir/aview.pgm
mkfifo $outfile
while [ $counter -gt 0 ]; do
counter=$(($counter-1))
name=${filenames[$counter]}
if test -r "$name" ; then
case "$name" in
*.fli | *.lfc | *.flic )
  PATH="$PATH:."
  aaflip $options "$name"
  ;;
*)
  myconvert "$name" "$outfile" >"$outfile" &
  pid=$!
  PATH="$PATH:."
  aview  $options $outfile
  kill $pid 2>/dev/null
esac
else
  echo "The file '$name' could not be opened."
fi
done
 |