The Virtual Terminal Model
The objective of virtual terminal protocols is to provide the users of the service with a common, logical view of terminals. The common user view is attained through a standard, protocol-wide representation of a canonical terminal, the virtual terminal. This permits the exchanges between users of the protocol to be free of device-specific encodings.
The design postulates an integrated virtual terminal model which extends the nature and scope of this canonical device in several important ways. The major aspects of the model, its connectivity, its organization, and its architecture are described below.
2.2.1 Virtual Terminal Connectivity
Most virtual terminal protocols only cater to two-way dialogues in which a single virtual terminal terminates each end of the communication path.
We define the virtual terminal as a n-way device where one or more of the correspondents to this device are local users of the service, and the remaining correspondents (if any) are peer virtual terminals. Each correspondent to the virtual terminal has its own bi-directional path to produce virtual input to, and receive virtual output from, the virtual terminal. This bi-directional path provides the vehicle for a virtual terminal session between user and virtual terminal. Globally, the cooperating virtual terminals and these bi-directional paths span a dendritic (tree-like) topology.
It is important to note that we have decoupled the virtual terminal from its physical realization, a single real terminal. Indeed, a virtual terminal does not map necessarily to just one real device, but possibly to many real devices.
The virtual terminal is viewed ultimately as a well-defined data structure which provides its correspondents with a non-dedicated virtual terminal service. And these correspondents may have read only, write only, or read/write access rights to this data structure.
2.2.2 Virtual Terminal Organization
The virtual terminal is an abstraction; its organization, the building blocks which make up the virtual terminal, is the result of a feature extraction of the real terminal that it is tailored to support.
We have conceptualized the virtual terminal as a meta-terminal (i.e., the terminal of terminals). The meta-terminal is composed of three well-distinguished building blocks: virtual keys, a virtual controller, and a virtual display.
2.2.2.1 The Virtual Keys
The analog of the virtual keys is the physical keyboard of real terminals. However, while the keys of a physical terminal are controlled by a single manual process, these virtual keys can be activated by multiple, concurrent entities (the virtual terminal correspondents). Each correspondent of the virtual terminal, be it a user of the service or a peer virtual terminal, has its input stream to the meta-terminal terminated at the virtual keys. The virtual keys provide the control of access of input streams to the meta-terminal.
2.2.2.2 The Virtual Controller
The virtual controller provides virtual terminal session management. It manages the establishment and termination of a virtual terminal session with a correspondent; supports the possible negotiation and renegotiation of the session attributes; and enables the deactivation and later activation of the session. The virtual controller also provides virtual terminal signalling control by managing the out-of-band signals addressed to the virtual terminal.
2.2.2.3 The Virtual Display
The virtual display is the dynamic component in the meta-terminal organization. For each class of real device (e.g. stream, line, page, or graphics-oriented devices) there is a corresponding virtual terminal class. The organization of the virtual terminal data structure is class-specific. A virtual terminal models a particular terminal class when it is 'fitted' with the proper data structure manager or virtual display. This binding need not be static (e.g., a line-class specialist, and so forth), but could be result of decisions made at "run-time" by applying the principle of negotiated options.
The virtual display manages the data structure associated with the meta-terminal and performs operations on the control and data elements of the structure. As a direct consequence of these operations on the meta-terminal data structure, the virtual display may generate display updates to one, some, or all of the correspondents. All virtual terminal output streams originate at the virtual display.
Different virtual terminal classes are spawned by different "kinds" of virtual displays, and this is realized in one of two ways. For character-oriented virtual devices, it is possible to use a single, wide-scoped virtual display with a character-oriented data structure by constraining it to conform to the model of the device class (e.g., line-oriented devices must be constrained to line-access rules). For non character-oriented virtual devices (e.g., graphics devices), an altogether different virtual display must be used with properties better suited for the new domain (e.g., a graphics virtual display based on a structured display file).