| FILENAME(1) | General Commands Manual | FILENAME(1) |
filename - interactively select a file
wm/filename [ -d startdir ] [ -g geom ] [ -t title ] [ pattern... ]
Filename pops up a file browser window, allows the user to select a file and prints the name of that file to the standard output. The optional list of patterns gives a list of wildcard patterns as understood by filepat (2); the file browser will initially show only files matching one or more of the patterns. (N.B. patterns must be quoted to prevent the shell from interpreting them). The following options are recognised:
The following sh (1) command compiles an interactively chosen Limbo source file, placing the file browser window at a particular spot on the screen and starting at joe's home directory.
limbo `{wm/filename -t 'Select a source file' -g '-x 50 -y 50'
-d/usr/joe '*.b' '*.m'}
/appl/wm/filename.b
The file browser window actually appears 20 pixels below and to the right of the position specified.