Skip to main content

The Network Standard Data Stream

There remains only the matter of the NGDS and the NGSI. The NGDS is parsed into commands by the NGSI and each command is executed as soon as it is recognized. The commands in the NGDS are in prefix form, consisting of an eight bit operation code followed by any arguments. Only two commands are defined: Erase and Replace.

The Erase command consists of a single zero-valued opcode and no arguments. The NGSI executes the Erase command by making all lists into null lists. This erases the screen.

The Replace command has an opcode of 1, followed by a 16-bit list name, followed by an 8 bit subargument count, followed by the indicated number of subarguments. The NGSI executes the Replcae command by deleteing all items from the indicated list, and rebuilding the list from the subarguments.

There are five kinds of subarguments, corresponding to the five item types.

<subargument>::=<atype> | <btype> |  <ctype> |
<dtype> | <etype>

<atype>::= <a> <x> <y>

<btype>::= <b> <x> <y>

<ctype>::= <c>

<dtype>::= <d> <n> <c> ... <c>
n

<etype>::= <e> <g> <x> <y>

<a>, <b>, <c>, <d>, and <e> are 8 bit bytes valued at 0, 1 ... 4, respectively and corresponging to the item types listed on page 4.

<x> and <y> are 16 bit numbers

<g> is a 16 bit list name

<n> is an 8 bit count

<c> is an ASCII character code


Note: This RFC was put into machine readable form for entry into the online RFC archives by Anand Kumria 6/97.