Skip to main content

Display Editing Primitives

General editing primitives​

REQUEST-DISPLAY-FILE (file-type)​

file-type is either structured or segmented.

This command requires a response.

Segmented display file editing​

SEGMENT (Segment)​

If the segment Segment already exists, then it is cleared; if it did not exist then it is created.

Pictures are displayed within segments by the use of the primitive unit command listed below.

DELETE-SEGMENT(Segment)​

If the segment exists, then it is deleted.

Primitive Units​

All unit operations cause immediate display on the screen.

STRING-UNIT(Segment,Mode,X-Origin,Y-Origin,Text)​

Writes the specified string unit.

Mode refers to relative intensity, blinking, reverse video, color, etc.

Errors: Segment does not exist.

LINE-UNIT(Segment,Type,Mode,X0,Y0,X1,Y1, ..., Xn,Yn)​

Draws the specified line segments.

Type refers to solid, dashed, dotted, etc.

Errors: Segment does not exist; illegal mode.

DOT-UNIT(Segment,Mode,X0,Y0,X1,Y1, ..., Xn,Yn)​

Draws the specified dots.

Errors: Segment does not exist; illegal mode.

SPECIAL-POINTS-UNIT(Segment,Mode,X1,Y1, ..., Xn,Yn)​

Draws the special-points curve.

The terminal should attempt to connect the specified points in the nicest way possible (e.g. Flegal's spline curve algorithm, straight line segments).

Errors: Segment does not exist; illegal mode.

TTY-UNIT(Segment,Mode,Rectangle,Lines)​

Creates a unit which will behave as a tty-simulation area with "lines" lines distributed within the specified rectangle.

Unescorted characters will be echoed in this unit in addition to any other units they are being sent to.

Errors: Segment does not exist.

DEVICE-SPECIFIC-UNIT(Segment,device commands)​

Creates a unit of device specific commands.

TTY(parameters)​

parameters are:

  • position rectangle, visible/invisible, number of lines, mode of characters

This refers to the ICP TTY simulation.

RESET()​

delete all segments, except ICP SEGMENT, and all units of ICP SEGMENT, except ICP TTY-UNIT

resets all nodes to their initial state (i.e., the state that existed immediately after a REQUEST-DISPLAY-FILE command)

Structured display file editing​

SUBPICTURE(Subpicture, rectangle)​

Creates a new subpicture with name "Subpicture". "rectangle" is the coordinates of a diagonal of the subpicture's virtual screen (i.e. its coordinate system.)

If a subpicture named "Subpicture" already exists, it is cleared and the new coordinate rectangle takes precedence.

DELETE-SUBPICTURE(Subpicture)​

Deletes the subpicture named "Subpicture". Call units referring to Subpicture are also deleted.

CLEAR-SUBPICTURE(Subpicture)​

Deletes all units of the subpicture Subpicture, but does not delete the subpicture.

Primitive Units​

All the operations for creating units are transparent to the prior existence of the designated unit, i.e. they function as "replace" as well as "create".

STRING-UNIT(Subpicture,Unit,Target-Key,Mode,X-Origin,Y-origin,Text)​

Replaces the unit by a string unit.

Mode specifies the mode of the characters (e.g. blinking, underlined, etc).

Target-Key is used in conjunction with the TARGET-SENSITIVE command and target input. It may also be sent via the SET-TARGET-KEY COMMAND.

Errors: Subpicture does not exist; X-Origin or Y-Origin is outside the subpicture's virtual coordinate system.

We explicitly do not require an error if the string extends beyond the right-hand edge of the subpicture; however, the results are not defined.

LINE-UNIT(Subpicture,Unit,Target-Key,Type,Mode,X0,Y0,X1,Y1, ..., Xn,Yn)​

Replaces the unit by a line unit.

Errors: Subpicture does not exist illegal mode; some X or Y is outside the subpicture.

DOT-UNIT(Subpicture,Unit,Target-Key,Type,Mode,X0,Y0,X1,Y1, ..., Xn,Yn)​

Replaces the unit by a dot unit.

Errors: Subpicture does not exist; illegal mode; some X or Y is outside the subpicture.

SPECIAL-POINTS-UNIT(Subpicture,Unit,Target-Key,Type,Mode,X1,Y1, ..., Xn,Yn)​

Replaces the unit by a special-points unit.

Errors: Subpicture does not exist; illegal mode; some X or Y is outside the subpicture.

CALL-UNIT(Subpicture,Unit,Target-Key,Called-Subpicture,Parameters)​

Replaces the unit by a call unit.

Parameters:

  • Master-Instance rectangles
  • rotation
  • mode

Errors: Subpicture does not exist; Called-Subpicture does not exist; parameter errors.

TTY-UNIT(Subpicture, unit, mode, rectangle, lines)​

Creates a unit which will behave as a tty-simulation area with "lines" lines distributed within the specified rectangle.

Errors: Subpicture does not exist.

DEVICE-SPECIFIC-UNIT(Subpicture, Unit, Target-Key, device, commands)​

Creates a unit of device specific commands. The action of the commands should leave alone (or at least restore) any global modes, e.g., the standout mode (see below).

APPEND-STRING-TO-UNIT(Subpicture, Unit, Text)​

Appends the specified text to the specific commands. This only makes sense if the specified unit is a string or tty unit.

Errors: Subpicture does not exist, unit does not exist, not a string or tty unit.

DELETE-UNIT(Subpicture, Unit)​

Deletes a unit.

VISIBLE-UNIT(Subpicture, Unit, Flag)​

Makes the Unit visible or invisible as specified by Flag. If a unit which is target sensitive is made invisible, it is no longer target sensitive. However, in the absence of a subsequent modifying target sensitive command, the unit becomes target sensitive again if it should be made visible.

Errors: Subpicture does not exist, unit does not exist.

SET-TARGET-KEY(Subpicture, Unit, Target-Key)​

Sets the target key for the specified unit to the specified value.

SET-STANDOUT-MODE(mode)​

Sets the mode that will be used to make text and/or units stand out to blinking, underlining, etc.

If the terminal does not support the specified mode, the terminal should make a best effort or use another method to make things stand out.

STANDOUT-UNIT(Subpicture, unit, yesno)​

makes the specified unit stand out (according to the mode set by SET-STANDOUT-MODE) or not, according to "yesno". If the unit which is to stand out is a call-unit, the instance of the subpicture which is the result of the call (all the way to the terminal nodes) is made to stand out.

STANDOUT-TEXT(Subpicture, unit, begin-char-count, end-char-count, yesno)​

Unit must refer to a string unit.

Makes the specified text stand out (according to the mode set by SET-STANDOUT-MODE) or not, according to "yesno".

UPDATE-STRUCTURED-DISPLAY()​

This causes any changes that have been made to the display file, since the last update or since ICP, to be reflected on the screen.

TTY(parameters)​

parameters are:

  • position rectangle, visible/invisible, number of lines, mode of characters

This refers to the ICP TTY simulation

USE-TTY-UNITS(Subpicture1, unit1, ..., Subpicturen, unitn)​

Unescorted characters are to be appended only to the specified tty units.

Errors: Subpicture, unit does not exist.

RESET(How)​

Case How Of

  • = Permanent

    Immediately resets the terminal to its initial ICP state

  • = Temporary

    Immediately resets the terminal to its initial ICP state without destroying the previous state.

  • = Restore state saved from last RESET(Temporary).