GRASS logo

Note: This addon document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade your GRASS GIS installation, and read the current addon manual page.

NAME

d.mon2 - Starts a graphics display monitor which can be controlled from the command line.

KEYWORDS

display, CLI

SYNOPSIS

d.mon2
d.mon2 --help
d.mon2 [-cbd] [width=integer] [height=integer] [handler=string] [tempfile=string] [percent=integer] [color=string] [--help] [--verbose] [--quiet] [--ui]

Flags:

-c
Use the Cario driver to render images
-b
output Bourne shell code to set up display
-d
output DOS code to set up display
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

width=integer
Width for display monitor if not set by GRASS_RENDER_WIDTH
Default: 800
height=integer
Height for display monitor if not set by GRASS_RENDER_HEIGHT
Default: 600
handler=string
Window program to use
Options: ximgview, wximgview, wxpyimgview, qiv, none
Default: wximgview
tempfile=string
Name and location of temp file
percent=integer
Percentage of CPU time to use
Default: 10
color=string
Background color, either a standard GRASS color or R:G:B triplet (separated by colons)
Default: white

Table of contents

DESCRIPTION

This is just a little experiment to see if we can make the ximgview, wximgview, and wxpyimgview programs a bit simpler to start up.

Add this to your ~/.grass.bashrc file:

  if [ `echo "$GRASS_VERSION" | cut -f1 -d.` -eq 7 ] ; then
     alias d.mon='eval `d.mon.py -b`'
  fi

By default the temporary file will be stored in $MAPSET/.tmp/ and cleared at the end of the session. You can put it somewhere else with the tempfile option. For example, when working remotely with PuTTY (ssh without tunnelled X) + Apache:

   alias d.mon='eval `d.mon.py -b handler=none tempfile=/var/www/grassmap.png`'
then just hit reload in your web browser whenever a refresh is needed.

AUTHOR

Hamish Bowman
Dunedin, New Zealand

SOURCE CODE

Available at: d.mon2 source code (history)

Latest change: Mon Jun 28 07:54:09 2021 in commit: 1cfc0af029a35a5d6c7dae5ca7204d0eb85dbc55


Note: This addon document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade your GRASS GIS installation, and read the current addon manual page.

Main index | Display index | Topics index | Keywords index | Graphical index | Full index

© 2003-2022 GRASS Development Team, GRASS GIS 7.8.8dev Reference Manual