4
#% description: To establish and control use of a graphics display monitor.
9
#% description: List all monitors
13
#% description: List all monitors (with current status)
17
#% description: Print name of currently selected monitor
21
#% description: Release currently selected monitor
25
#% description: Do not automatically select when starting
32
#% description: Name of graphics monitor to start (p0-p9)
39
#% description: Name of graphics monitor to stop
46
#% description: Name of graphics monitor to select
53
#% description: Name of graphics monitor to unlock
56
if [ -z "$GISBASE" ] ; then
57
echo "You must be in GRASS GIS to run this program." 1>&2
61
if [ "$1" != "@ARGS_PARSED@" ] ; then
62
exec g.parser "$0" "$@"
67
if [ -z "$PYTHONPATH" ] ; then
68
PYTHONPATH="$GISBASE/etc/wxpython"
70
PYTHONPATH="$GISBASE/etc/wxpython:$PYTHONPATH"
74
start="$GIS_OPT_START"
75
select="$GIS_OPT_SELECT"
77
unlock="$GIS_OPT_UNLOCK"
79
# create the command file
80
command_file="`g.tempfile pid=$$`"
81
g.gisenv set="GRASS_PYCMDFILE=${command_file}"
83
if [ -n "$start" ] ; then
84
"$GRASS_PYTHON" "$PYTHONPATH/gui_modules/mapdisp.py" "$start" "${command_file}" &
87
if [[ -n "$stop" || -n "$select" || -n "$unlock" ]] ; then
88
g.message -w "Not implemented yet"