Search Sequence

mftic produces, and mfinfocmp lists, compiled format terminfo files for a terminfo database. Unless an option is specified to override it, by default, the directory containing the database is located using the following search sequences:

For mftic:

If parameter -m (which is the default) is used, the sequence is as follows:

  1. The COBTERMINFO environment variable specifies the directory in which to locate the file.
  2. The TERMINFO environment variable specifies the directory in which to locate the file.
  3. The path $COBDIR/terminfo specifies the directory in which to locate the file.

If parameter -S is used, the sequence is as follows:

  1. The TERMINFO environment variable specifies the directory in which to locate the file.
  2. The path to your default system terminfo directory specifies the directory in which to locate the file.

For mfinfocmp:

If parameter -m (which is the default) is used, the sequence is as follows:

  1. The COBTERMINFO environment variable specifies the directory in which to locate the file.
  2. The path $COBDIR/terminfo specifies the directory in which to locate the file.
  3. The TERMINFO environment variable specifies the directory in which to locate the file.
  4. The path to your default system terminfo directory specifies the directory in which to locate the file.

If parameter -S is used, the sequence is as follows:

  1. The TERMINFO environment variable specifies the directory in which to locate the file.
  2. The path to your default system terminfo directory specifies the directory in which to locate the file.

See Terminfo Compiler (mftic) and Terminfo Lister (mfinfocmp) for more details on the available parameters.

Note: If Micro Focus format terminfo files (i.e. the -m parameter) are placed in a database located in a directory other than $COBDIR/terminfo, then at COBOL application run time you must use the COBTERMINFO environment variable (rather than the TERMINFO environment variable) to locate this directory. If you do not do this, either COBOL or non-COBOL applications can fail to run correctly.