Informix Error -1007
-1007 Invalid value for the INFORMIXTERM environment variable.
The only valid settings for the INFORMIXTERM environment variables are termcap and terminfo. Setting the variable to termcap (or leaving it undefined) directs 4GL to use the TERMCAP facility for terminal control. Setting it to terminfo causes 4GL to use the TERMINFO facility. Other settings, including variations of the words termcap and terminfo with capital letters in them, cause this error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1007 fires when INFORMIXTERM is set to anything other than its two accepted values — per the
official guidance, only termcap and terminfo are valid; leaving it unset defaults to the
termcap facility.
INFORMIXTERMset to a value other thantermcaporterminfo, per the official guidance — the direct, only cause.- A case variation of a valid value (e.g.
TermcaporTERMINFO), per the official guidance — case variations aren't accepted even though the words are otherwise correct.
Solutions / Resolution
- Set
INFORMIXTERMto exactlytermcaporterminfo, per the official guidance (lowercase, matching one of the two accepted values), or unset it to default totermcap.
Examples
Correcting the value
$ echo "$INFORMIXTERM"
Terminfo
$ export INFORMIXTERM=terminfo
Diagnostic Checks
- Check
INFORMIXTERM's exact value for an exact, lowercase match totermcaporterminfo.
Related Errors / Related Topics
- -1005 — "Your specified termcap file cannot be read." A related terminal-configuration
error, about the
TERMCAPfile path itself rather than theINFORMIXTERMfacility selector. - -1008 — "Termcap entry too long." A related termcap-specific error, once
INFORMIXTERM(or its default) has selected thetermcapfacility. - -1009 — "Bad termcap entry." Another related termcap-specific error, about malformed punctuation in the entry.
- -1010 — "Too many tc= indirections." Another related termcap-specific error, about an
entry chaining too many
tc=references.
Only termcap or terminfo (lowercase) are valid INFORMIXTERM values — correct the value or
unset it to default to termcap.