Skip to main content

Levels 1 and 2

LEVEL 1​

*Set Line mode ("LINMOD") <value>. This command sets the current line mode possible modes and the <value> which sets each are: solid (0), dashed (1), dotted (2), and others (3 or >). At the beginning of a new picture (i.e., after an Erase and Reset command), line mode is solid. If a site does not have a certain mode readily available, it may a) simulate it in software, b) substitute another in its place (dashed for dotted, or vice versa) c) ignore it entirely. What is provided should be clearly indicated in any public document. It is strongly recommend that at least solid and one other mode be provided.

*Set intensity ("SETINT") <value>. This command sets the intensity of lines, dots and characters displayed following the command. If <value> is 128 decimal, normal intensity should be set. If <value> is 255 decimal, brightest should be selected, and if it is 0, then the beam should be blanked. Intermediate values should be mapped appropriately as the implementer sees fit. For instance, if brightest is the same as normal, all values from 128 through 255 should be mapped to normal. Information displayed between the start of a new picture (the ERASE command) and the first SETINT command appears at normal intensity.

*Text out ("TEXTO") <string>. Starting from the current beam position, this command displays the <string> (of network ASCII characters) formatted as if it were typed material (at the current intensity). <string> consists of a <count> followed by count many characters. That is, text extending past the right margin will be broken and repositioned at the left margin on the next line down. Of the control characters, only carriage return, line feed, and backspace are required to be interpreted properly.

*Subpicture header ("SUBHED") <identifier> <count> <header info>. This command begins the definition of a subpicture named "<identifier>". This definition is terminated by a matching SUBEND command. The definition will be remembered until a new one is specified or until the graphics network connection is broken. Note that <identifier> is a <string> consisting solely of capital letters and numbers.

Subpicture definitions may be nested this will be equivalent to transmitting the two definitions separately. In other words, all subpicture names are globals and are "known" to all other subpictures. If a subpicture definition has not been received prior to its use in a picture, the empty subpicture should be displayed in its place until a definition is received.

A subpicture definition need not be transmitted as part of a picture (i.e., within an ERASE and END command pair). Indeed, all subpicture definitions might precede the main picture.

Currently, the <count> will always be 1, indicating only one byte of <header info> follows, but at higher levels of the protocol room for expansion may be required. In the <header info>, the 80 hex bit will be set if this subpicture can be a simple subpicture, and the 40 hex bit will be set if the subpicture can be a full subpicture. (It is possible that one subpicture can be both.)

Other information that may eventually be present in <header info> include whether the current value of a certain mode or parameter should be saved on entry to, and restored on exit from, this subroutine whenever it is called. These modes and parameters include: line mode, intensity, character size, and data length.

*Subpicture end ("SUBEND"). This command ends the definition of a subpicture. Each SUBEND must match a preceding SUBHED command.

*Simple instance ("INSTS") <identifier> <simple instance tail> This command indicates that the subpicture <identifier> is to be called (instanced). At this level, level 1, no subpicture may call another; if one does, what happens is left unspecified. Also, this must be a call to a simple subpicture. Thus the 80 hex bit of the single byte of <header info> must have been set in the SUBHED command which started the definition of <identifier>. If the subpicture <identifier> has never been defined, the empty subpicture should be displayed in its place.

The <simple instance tail> begins with a count of the amount of information which follows. This count may be zero. If non-zero, the next byte is a code byte to be interpreted to see what further information follows. If the 80-hex bit is set, next in the byte stream is an <identifier> (called "AS information"). This <identifier> is the name of this particular instance of the subpicture as described under Simple Subpicture Calls. If the 40-hex bit is set, then next in the byte stream (following the AS information, if present) is an x,y position (in the calling picture's coordinate scheme) at which the subpicture will be centered. (This is called AT information.)

If AT information is not specified, the current beam position is used as a default. If AS information is not specified, it defaults to the <string> containing zero characters. If neither the 40 hex nor the 80 hex bits are set, then neither the AT information not the AS information is present, and the code byte should be zero. (Also, the length count had better be 1.)

Changes to levels 0 commands for level 1.

TEXT and TEXTR -- Carriage return, line feed and backspace characters should definitely be interpreted whenever they appear in <string>. The results of other control characters remain unspecified. The intensity of the characters shall be affected by the SETINT command.

ERASE -- Normal intensity and solid line mode must be established at the start of a new picture.

DRAWA and DRAWR -- Line mode and intensity shall be affected by the LINMOD and SETINT commands.

DOTA and DOTR -- Intensity shall be affected by the SETINT command.

LEVEL 2​

*Mark ("MARK"). This command causes the current x,y beam position to be saved on a pushdown stack. This pushdown stack must be separate from the subpicture call pushdown stack.

*Move to mark and pop ("MOVEMK"). This command sets the current beam position equal to the x,y position at the top of the "mark" pushdown stack. If the stack is empty, the origin is used, instead. Then the stack is popped up (unless it is empty).

*Draw to mark and pop ("DRAWMK"). If the "mark" pushdown stack is not empty, this command draws a line (of the current line mode and intensity) from the current beam position to the x,y position at the top of the "mark" pushdown stack, and sets the beam position to that value. Then the stack is popped. If the stack is empty, the line is drawn to the origin and the beam position is set there also.

Changes to level 0 and 1 for level 2.

INTS -- arbitrary levels of simple subpictures must be supported. (Note that recursive use of subpictures is not allowed: once recursion starts, it can never be stopped.) The pushdown stack for subpicture calls must be kept separate from the "mark" pushdown stack.