home *** CD-ROM | disk | FTP | other *** search
- #
- # view.sh - display file of any type
- #
- set file $_passed
- alias center "%a echo @center( $a 77 )
- if $file <> ""
- class.sh toolmanager
- if @getclass( $file ) = dir;set file $file""!*.info;endif
- action view $file
- set err $_lasterr
- if $err = 10
- center
- center "I could not determine the type of this file."
- endif
- if $err = 11
- center
- center "I don't know how to view this type of file."
- endif
- if $err = 12
- center
- center "I could not execute the program to view this file."
- endif
- else
- center
- center "* * * VIEW * * *"
- center
- center
- center "Drop any text/graphic/archive/sound icon on this icon."
- center "It will be displayed, listed or played, respectively"
- center
- center "To modify the various programs used for displaying, read
- center "the chapter 'object oriented features' in your csh.doc.
- center
- center
- center "Click close button when done
- endif
-