d.mon.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <h2>DESCRIPTION</h2>
  2. <em>d.mon</em> allows the user to start, select, list, release, and
  3. stop available graphics monitors.
  4. <h3>Starting a monitor</h3>
  5. In order to display on-screen GRASS graphics, the user must
  6. <b>start</b> and <b>select</b> a graphics monitor. By default,
  7. the <b>start</b> command actually runs two commands, to both start and
  8. select whatever monitor is named by the user. The user can get a list
  9. of running monitors by setting the <b>-l</b> flag on the command
  10. line. Note that some monitor <a href="displaydrivers.html">drivers</a> use environment
  11. <em><a href="variables.html">variables</a></em> or the specific
  12. <em><a href="variables.html#list-of-selected-grass-environment-variables-for-rendering">driver documentation</a></em>.
  13. <p>When a monitor is <em>started</em>, it is therefore also
  14. (automatically) <em>selected</em> for output, unless the
  15. <b>-s</b> flag is set by the user; the user can also
  16. explicitly <b>select</b> a monitor that has been started.
  17. <p>The desired monitor should be started once and need not be restarted
  18. unless it is stopped for some reason. A monitor may continue to run
  19. for any length of time, even when no GRASS session is being run.
  20. <h3>Stopping a monitor</h3>
  21. A graphics monitor has two different types of status: monitor
  22. program <em>not running</em>, and monitor <em>running</em>. A monitor
  23. that has been started and/or selected will be listed as running; a
  24. monitor that has been stopped (or not started) will be listed as not
  25. running. The <b>-l</b> flag will list all currently running monitors.
  26. <h3>Selecting a monitor</h3>
  27. When the user <em>starts</em> a monitor, it is also
  28. (automatically) <em>selected</em> for graphics output unless the user
  29. sets the <b>-s</b> flag. In order to use (direct graphics output to)
  30. a monitor, the user must <em>select</em> that monitor for use, either
  31. by simply starting the monitor without the <b>-s</b> flag or by
  32. explicitly selecting the monitor for output. Only running monitors can
  33. be selected for graphics output.
  34. <p>The user can run multiple graphics monitors by simply starting each of
  35. the graphics monitors the user wishes to direct output to.
  36. <h3>Releasing (unselecting) a monitor</h3>
  37. Currently <em>selected</em> a monitor can be released by <b>-r</b>
  38. flag.
  39. <h2>NOTES</h2>
  40. <em>d.mon</em> is designed for interactive use. If non-interactive use
  41. is needed (e.g., in a script) set <tt>GRASS_RENDER_IMMEDIATE=png</tt>
  42. (or <tt>=cairo</tt>) and use the related environment
  43. <a href="variables.html">variables</a> to control output size etc.
  44. <h2>EXAMPLES</h2>
  45. <h3>wx0 monitor</h3>
  46. To start interactive <em><a href="wxGUI.html#map-display-window">wxGUI map
  47. display</a></em>, run
  48. <div class="code"><pre>
  49. d.mon start=wx0
  50. </pre></div>
  51. All data will be rendered on <tt>wx0</tt> display.
  52. <h3>CAIRO file renderer monitor</h3>
  53. A new CAIRO monitor can be started (and selected) by
  54. <div class="code"><pre>
  55. d.mon start=cairo output=out.pdf
  56. </pre></div>
  57. From this moment all data will be rendered into
  58. file <tt>output.pdf</tt>.
  59. <h3>List running monitors</h3>
  60. To list running monitors, use
  61. <div class="code"><pre>
  62. d.mon -l
  63. List of running monitors:
  64. wx0
  65. cairo
  66. </pre></div>
  67. <h3>Show currently selected monitor</h3>
  68. To determine currently selected monitor
  69. <div class="code"><pre>
  70. d.mon -p
  71. cairo
  72. </pre></div>
  73. <h3>Switching between monitors</h3>
  74. To switch back to interactive, earlier started and still running wxGUI
  75. monitor
  76. <div class="code"><pre>
  77. d.mon select=wx0
  78. </pre></div>
  79. <h3>Stopping a monitor</h3>
  80. To close the wxGUI monitor
  81. <div class="code"><pre>
  82. d.mon stop=wx0
  83. </pre></div>
  84. <h2>SEE ALSO</h2>
  85. <em>
  86. <a href="d.erase.html">d.erase</a>,
  87. <a href="d.redraw.html">d.redraw</a>,
  88. <a href="d.rast.html">d.rast</a>,
  89. <a href="d.vect.html">d.vect</a>
  90. </em>
  91. <p>
  92. See also <a href="variables.html#list-of-selected-grass-environment-variables-for-rendering">list
  93. of variables for rendering</a>,
  94. <a href="displaydrivers.html">display drivers</a>
  95. <h2>AUTHOR</h2>
  96. Martin Landa, OSGeoREL, Czech Technical University in Prague, Czech Republic
  97. <p><i>Last changed: $Date$</i>