d.mon.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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>Start 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#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>Stop 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>Select 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 he wishes to direct output to.
  36. <h3>Release a monitor</h3>
  37. Currently <em>selected</em> a monitor can be released by <b>-r</b>
  38. flag.
  39. <h2>EXAMPLES</h2>
  40. To start interactive <em><a href="wxGUI.html">wxGUI</a></em> map
  41. display
  42. <div class="code"><pre>
  43. d.mon start=wx0
  44. </pre></div>
  45. All data will be rendered on <tt>wx0</tt> display. New monitor can be
  46. started (and selected ) by
  47. <div class="code"><pre>
  48. d.mon start=cairo output=out.pdf
  49. </pre></div>
  50. To list running monitors
  51. <div class="code"><pre>
  52. d.mon -l
  53. List of running monitors:
  54. wx0
  55. cairo
  56. </pre></div>
  57. To determine currently selected monitor
  58. <div class="code"><pre>
  59. d.mon -p
  60. cairo
  61. </pre></div>
  62. From this moment all data will be rendered into
  63. file <tt>output.pdf</tt>. To switch back to interactive wxGUI monitor
  64. <div class="code"><pre>
  65. d.mon select=wx0
  66. </pre></div>
  67. To close this monitor
  68. <div class="code"><pre>
  69. d.mon stop=wx0
  70. </pre></div>
  71. <h2>SEE ALSO</h2>
  72. <em>
  73. <a href="d.erase.html">d.erase</a>,
  74. <a href="d.redraw.html">d.redraw</a>,
  75. <a href="d.rast.html">d.rast</a>,
  76. <a href="d.vect.html">d.vect</a>
  77. </em>
  78. <p>
  79. See also
  80. <em>
  81. list of <a href="variables.html">variables</a>,
  82. <a href="displaydrivers.html">display drivers</a>
  83. </em>
  84. <h2>AUTHOR</h2>
  85. Martin Landa, Czech Republic
  86. <p><i>Last changed: $Date$</i>