X11CommanderOps.mesa
Copyright Ó 1992 by Xerox Corporation. All rights reserved.
Created by Christian Jacobi, May 8, 1992
Christian Jacobi, October 9, 1992 0:05 am PDT
Allows access of X window connections from command procedures. Selects X server according to environment parameters.
X11CommanderOps: CEDAR DEFINITIONS
~ BEGIN
ConnectionProc: TYPE = PROC [connection: Xl.Connection];
DoWithConnection:
PROC [proc: ConnectionProc, catchXErrors:
BOOL ←
TRUE, application:
ATOM ¬
NIL];
Calls proc with a connection made up. The connection will be subject to reference counting as soon as proc returns.
proc: will either be called with a live connection, or, CommanderOps.Failed is raised.
catchXErrors: If true, X errors will be caught and re-raised as CommanderOps.Failed; catchXErrors can be overruled by the environment for debugging purposes.
application: Some applications may use designated X servers.
END.