#!/home/eliasen/bin/frink /** This program is a "graphical" ls program that lists image files as ANSI graphics. If passed no arguments, this will list all the files in the current directory. */ /* We handle the command-line switches here because fetching the number of columns in the window using, say, tput, doesn't seem to work right within a Java process. We instead have an external script at ~/bin/lsim that sets the -c flag. The bash file "lsim" that sets the number of columns looks like (adjust paths for your system): #!/bin/bash cols=$(tput cols) frink /home/eliasen/prog/frink/samples/lsim.frink -c $cols "$@" */ recursive = false cols = 60 len = length[ARGS] i=0 while i