In a termcap definition for a terminal, the entry tc= causes the use of a definition for default values for a different terminal. That terminal might also have a tc= entry, and so on. However, 4GL cannot follow more than four tc= commands. The termcap definition in use at this time (as the TERM or TERMCAP environment variable specifies) exceeds the limit. Write or find a termcap definition that is more self contained.