Tools: MPW
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Support

MPW Command Reference


Monitors

Built-in

SYNTAX

Monitors [monitor1 [monitor2…]]

DESCRIPTION

The Monitors command returns the coordinates of the display rectangle for the specified monitor. If no monitor is specified, Monitors returns the coordinates for the main monitor (the one containing the menu bar).

This built-in command was added in the v. 3.4.2 MPW Shell.

INPUT

None

OUTPUT

Standard output. Monitors lists the coordinates that describe the specified monitor's display rectangle.

STATUS

Monitors can return the following status codes:

0

no errors

1

parameter or option error

PARAMETERS

monitor1 [monitor2…]

Specifies one or more monitors to be described. The numbers correspond to the numbers assigned to each monitor in the Monitors control panel.

OPTIONS

None

EXAMPLES

If you are using a 21-inch monitor, the command

Monitors

returns

0,0,870,1152

If you have two 21-inch monitors connected, the command

Monitors 1 2

returns

0,0,870,1152
0,-1152,870,0

 
 


Last Updated July 2000