Previous Topic Next topic Print topic


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 sequence:

  1. If the COBTERMINFO environment variable is set, its contents are taken to be the directory name.
  2. If the TERMINFO environment variable is set, its contents are taken to be the directory name.
  3. If neither environment variable is set, the default directory used depends on whether or not the -m option is specified. If -m is specified then the directory $COBDIR/terminfo is used; if it is not specified then /usr/lib/terminfo is used. See the sections Terminfo Compiler (mftic) and Terminfo Lister (mfinfocmp) earlier in this chapter for details on the -m option.
Note: If Micro Focus format terminfo files 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.
Previous Topic Next topic Print topic