|
NAMEd.mon - Controls graphics display monitors from the command line.KEYWORDSdisplay, graphics, monitorsSYNOPSISd.mond.mon --help d.mon [-lpcgsrtux] [start=string] [stop=string] [select=string] [width=value] [height=value] [resolution=value] [bgcolor=name] [output=name] [--overwrite] [--help] [--verbose] [--quiet] [--ui] Flags:
Parameters:
DESCRIPTIONd.mon allows the user to start, select, list, release, and stop available graphics monitors.Starting a monitorIn order to display on-screen GRASS graphics, the user must start and select a graphics monitor. By default, the start command actually runs two commands, to both start and select whatever monitor is named by the user. The user can get a list of running monitors by setting the -l flag on the command line. Note that some monitor drivers use environment variables or the specific driver documentation.When a monitor is started, it is therefore also (automatically) selected for output, unless the -s flag is set by the user; the user can also explicitly select a monitor that has been started. The desired monitor should be started once and need not be restarted unless it is stopped for some reason. A monitor may continue to run for any length of time, even when no GRASS session is being run. Stopping a monitorA graphics monitor has two different types of status: monitor program not running, and monitor running. A monitor that has been started and/or selected will be listed as running; a monitor that has been stopped (or not started) will be listed as not running. The -l flag will list all currently running monitors.Selecting a monitorWhen the user starts a monitor, it is also (automatically) selected for graphics output unless the user sets the -s flag. In order to use (direct graphics output to) a monitor, the user must select that monitor for use, either by simply starting the monitor without the -s flag or by explicitly selecting the monitor for output. Only running monitors can be selected for graphics output.The user can run multiple graphics monitors by simply starting each of the graphics monitors the user wishes to direct output to. Releasing (unselecting) a monitorCurrently selected a monitor can be released by -r flag.NOTESd.mon is designed for interactive use. If non-interactive use is needed (e.g., in a script) set GRASS_RENDER_IMMEDIATE=png (or =cairo) and use the related environment variables to control output size etc.EXAMPLESwx0 monitorTo start the interactive wxGUI map display, rund.mon start=wx0 Figure: The initialization of display monitor wx0 All subsequently displayed data will be rendered on monitor wx0. g.region raster=elevation -p d.rast map=elevation Figure: The display wx0 showing an elevation raster map CAIRO file renderer monitorA CAIRO monitor can be started (and selected) byd.mon start=cairo output=out.pdfFrom this moment on all displayed data will be rendered into file output.pdf. List running monitorsTo list the currently running monitors, used.mon -l List of running monitors: wx0 cairo Show currently selected monitorTo identify the currently selected monitor, used.mon -p cairo Switching between monitorsTo switch back to interactive display mode, here to an earlier started and still running wxGUI monitor, used.mon select=wx0 Stopping a monitorTo close the wxGUI monitor, rund.mon stop=wx0 SEE ALSOd.erase, d.redraw, d.rast, d.vect, d.frameSee also list of variables for rendering, display drivers AUTHORMartin Landa, OSGeoREL, Czech Technical University in Prague, Czech RepublicSOURCE CODEAvailable at: d.mon source code (history)Main index | Display index | Topics index | Keywords index | Graphical index | Full index © 2003-2021 GRASS Development Team, GRASS GIS 7.8.6 Reference Manual
Visit the GSP FreeBSD Man Page Interface. |