Parsing Terminal Commands

Each field in the vvtermcap entry is read one at a time. The mnemonic in the field is read and then searched for in the terminal definition table. The terminal definition table is an array of TD_FLD structures. A TD_FLD structure has members for the following:

If the mnemonic is found in the terminal definition table, what happens depends on the type of field. If the field is a numeric or character field, the variable pointed to in the array for that mnemonic is set to the value in vvtermcap. If the field is a boolean field, the variable pointed to for the mnemonic is set to ON or OFF, depending on how the initialization routine interprets the presence of the capability. If the field is a string field, memory is allocated for the string specified in vvtermcap and its pointer is placed in the variable pointed to for the mnemonic.


Home Contents Previous Next