display-file: [-flushcmd=<command>] [-flushframe=<n>] [-flushtime=<t>] <filename>
The display-file target can be used to generate movies from running LibGGI applications. To do this, set -flushcmd to a shell command to execute at the times given by one of the two other parameters. This looks typically like:
ppmtogif foo.ppm > foo.%04d.gif
The command is passed through a printf(3) which has the current count of saved frames as an argument (or rather as 10 arguments to allow a few more complex commands).
This shell command is either executed at every n-th invocation of ggiFlush or every t seconds, where t can have fractional components (specified as decimal).
Note, that the invocation of the shell command will slow down the program, so make sure you use a reasonable value, if you use the -flushtime argument.
The primary file is updated before every invocation of the shell command.