# Terminal Type
Updated: 10/19/2020, 10:24:56 AM
Created: 10/19/2020, 10:24:56 AM
Last Updated By: Daniel Klein
Read Time: 2 minute(s)
jBASE provides support for a terminal type cross reference mechanism that enables setting of synonym Multivalued terminal types to be mapped to a real terminfo terminal type.
A synonym name exists when the name is entirely numeric or the name is a 1 character alpha and the name exists as the first field in this cross reference database.
If the synonym is found, then jBASE uses the synonym name in things like the TERM command, and the SYSTEM(7) function. However, it maintains the UNIX environment variable "TERM" to be the name given in the second field in the entry and uses those definitions in the terminfo database.
For example, if the BASIC source uses the following statement.
ASSIGN "I" TO SYSTEM(7)
Then (assuming you leave the defaults in this database alone), the cross reference field is ibm3101 , and so it will change the TERM environment variable to "ibm3101", and will use that entry in the terminfo database, but will return "I" from SYSTEM(7), and the TERM command will also show the terminal type of "I".
Similarly, the following jBASE command
Will change the terminal type to "7" for jBASE applications, but will cause the TERM variable to be set to "wy50".
# Config_TERM Entries
The following entries are provided by default in the Config_TERM configuration file located in the "config" subdirectory of the jBASE release directory.
Each entry contains 2 fields, delimited by tabs, spaces and commas.
The first field is the synonym name. The second field is the real terminfo database name. Both fields are case sensitive.
Back to Terminal