Sign in Join
FPDoc Onlineexperiment

gpm_open function

In unit gpm

Open connection to GPM server.

Declaration

pascal
function gpm_open(var conn: Tgpm_connect; flag: LongInt): LongInt

Description

Gpm_Open opens a new connection to the mouse server. The connection is described by the fields of the conn record of type TGPMConnect.

if Flag is 0, then the application only receives events that come from its own terminal device. If it is negative it will receive all events. If the value is positive then it is considered a console number to which to connect.

The return value is -1 on error, or the file descriptor used to communicate with the client. Under an X-Term the return value is -2.

for an example, see Gpm_GetEvent.

Errors

On Error, the return value is -1.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.