context — Inferno 1.1ed
context
Synopsis
include "draw.m";
draw:= load Draw Draw->PATH;
Context: adt
{
screen: ref Screen;
display: ref Display;
cir: chan of int;
ckbd: chan of int;
cptr: chan of ref Pointer;
ctoappl: chan of int;
ctomux: chan of int;
};
Description
The Context abstract data type encapsulates the data types and channels used by an interactive application. A reference to the Context is passed as the first argument to an application when it begins execution:
include "draw.m";
Command: module
{
init: fn(nil: ref Draw->Context; nil: list of string);
};
Most programs do not create Contexts but rather inherit one from their parent, typically a shell or window system.
General Interfaces
|
screen
|
The Screen adt to which the application is connected; may be nil. See screen.
|
|
display
|
The Display adt to which the application is connected; may be nil. See display.
|
MUX Interfaces
See Also
|
ir
|
for description of the cir channel.
|
infernosupport@lucent.com Copyright © 1996,Lucent Technologies, Inc. All rights reserved.