Skip to main content

Basic Concepts

The model​

The model we are adopting consists of an application program manipulating a (remote) display file. This file may be "segmented" or "structured", in which case it may be manipulated independently from the display itself.

For structured display files an "update display" command causes the display file to get mapped onto the display in whatever fashion is appropriate for the display.

Part of this protocol deals with commands issued to the (remote) display file editor. This editor creates and changes the display file at the user host.

Structured Display Files​

A structured display file consists of named subpictures, each containing any number of named units. There are two types of units, primitive units and call units. The effect of a unit is independent of its name or creation within the subpicture.

Primitive units contain drawing instructions and associated coordinates that may generate visible information on the display screen. Drawing instructions and coordinates can occur only in primitive units.

Call units give the display structure a subroutine capability. A call unit invokes the display of another subpicture. In other words, a call unit allows one subpicture to contain instances of other subpictures. As well as providing for subroutine-style control transfer, call units can be used to establish display parameters and maintain parameter transparency. For example, a call unit can be used to call a subpicture with a translation and relative intensity setting. On return from the called subpicture, these parameters are restored to their original values.

A subpicture is an ordered list of units which can be any mixture of primitive and call units. Each subpicture begins with a header and terminates with the subpicture end unit. The subpicture end unit is a single unique unit in a display structure linked to the end of each subpicture.

In order to understand how control passes through a structure, one can think of the display elements as follows: subpictures are subroutines and units are linked blocks of in-line code. When all of the units contained in a subpicture have been executed, the subpicture end unit returns control to wherever the subpicture was called from. A primitive unit contains display code and transfer to the next unit. A call unit contains a subroutine call to a subpicture and a transfer to the next unit in line.

Segmented Display Files​

A segmented display file consists of named segments, each containing any number of primitive units. The only operations available for segmented display file is to add new, delete old, or replace old segments (updating the actual display happens automatically). The effect of a unit is independent of its name or creation order within the subpicture.

Hosts​

Since a given terminal may be under partial control of several different hosts, all further discussion of names, coordinates, display files, etc. should be taken as relative to each individual host.

That is, each host believes it has a display file, naming, and coordinate space and a set of state parameters entirely under its control; its only evidence of resource sharing is that the terminal may appear to be of different sizes at different times.

(We feel that in principle it should be processes within hosts, rather than hosts, that enjoy these properties, but it does not seem feasible to construct a process identification scheme that all hosts will find acceptable.)

Subpictures​

A subpicture has a name and zero or more units.

Subpicture names are arbitrary, globally unique, fixed-length identifiers (subpicture names are chosen by the host).

Each unit (displayable component) has a name, which is local to the subpicture.

A unit may be a "primitive unit", such as a string or a vector, or a "call unit", which implies displaying a (possibly transformed) copy of another subpicture.

The display data are organized into a re-entrant tree (acyclic graph) by the call units.

A unit may be "visible" or "invisible".

A particular instance of a subpicture (the result of a call-unit) appears on the screen precisely if it and all subpictures on the logical path to it from the root of the tree are "visible".

Primitive units​

Strings​

A string is a horizontal line of characters with its own mode and X,Y origin relative to the origin of the subpicture.

Note: intensity is always relative.

Font and mode (e.g. blinking) information logically accompanies each character. This is accomplished by means of embedded mode and font specification characters and a "restore original string mode and font" character.

Note: Mode modifiers are non-displayable characters and do not take up character positions on the screen.

Determining the space occupied on the screen by a string requires knowledge of the font(s) being used; this is a separate question which is dealt with later.

TTY units​

A tty unit is a rectangle that consists of a number of lines. Within this unit the display acts as if it were an alpha-numeric display, e.g.,

  • characters which would write beyond the right hand margin of the rectangle cause an automatic line folding to take place

  • ascii control characters CarriageReturn, LineFeed, FormFeed, and BackSpaceCharacter, (HorizontalTab and VerticalTab?), are interpreted appropriately

  • other control characters are displayed in a terminal specific manner, e.g. ^F, <^F>, etc.

  • display of the characters in the range 200-377 is left unspecified at this point (truncated to 7 bits?, alternate fonts?, alternate modes?)

    It is hoped that we can agree on a standardization of some of the characters in this range to allow for such things as greek letters, common mathematical symbols, super-scripting, and sub-scripting.

  • linefolding that would cause characters to be written below the rectangle (whether performed automatically or by a LineFeed character, etc.) cause the text within the unit to be scrolled upwards one line (storage tube may adopt a different scheme).

Characters are displayed in a teletype unit in one of two ways:

  • Characters sent to the terminal that are not part of any command (unescorted characters) are appended to appropriate tty-units (see below --- USE-TTY-UNITS, TTY)
  • By use of the APPEND-STRING-TO-UNITS command for structured display files

The first character sent to a tty-unit appears as the first character (at the left margin) of the top line. This is necessary for a number of reasons, the most convincing of which is the behavior characteristics of storage tubes and most real alpha-numeric displays.

Successive characters appear as successive characters within the top line until either an explicit (e.g., linefeed) or implicit (line overflow) line break occurs.

When a line break occurs, the next character appears on the second from the top line of the unit.

This continues until the bottom line of the tty-unit is reached.

At this point, a line break causes the lines within the unit to scroll up one line.

Note: Storage scopes may use a different technique for scrolling.

Dots​

A dot unit consists of an initial X0,Y0 followed by a series of points X,Y which describe a series of dots.

Each dot unit logically carries mode information such as blinking, relative intensity, etc.

Lines​

A line unit consists of an origin X0,Y0 followed by a series of points X,Y which describes a series of straight lines connected tail-to-head (i.e. a polygon).

Each line unit logically carries mode information such as blinking, dotted vs. solid, invisible.

Other kinds of lines, such as conic sections, may belong in the primitive set.

Special points​

This primitive unit consists of a series of points, which will be displayed joined by lines in the best available manner.

The intent is to use Flegal's algorithms to produce a smooth curve.

Device-specific​

This primitive unit consists of any number of device specific commands. The device type may be obtained through an interrogation command.

Call units​

In addition to the name of the referenced subpicture, a call unit may include the following transformations:

  • Master/instance rectangle: specifies a rectangle in the caller's space into which a specified rectangle of the callee's space is to be imaged. This provides independent scaling in each coordinate as well as translation and clipping.
  • Rotation. It may be desirable to combine this with scaling using the familiar idea of homogeneous transformation.
  • Intensity and color control. In principle, a call could specify intensity increments (positive or negative) for each color.

It is assumed that best effort will be used in scaling and rotation of text. We recommend replacing it by a line when all else fails.