Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why use terminfo instead of extensible termcap?

extensible termcap terminfo
0
Posted

Why use terminfo instead of extensible termcap?

0

Several reasons: • there is no standard for termcap. That is a drawback to developing applications using termcap. Amusingly enough, many of the termcap capabilities in common use now are defined in terms of terminfo, much like the inch is defined in terms of a centimeter. • terminfo supports conditional expressions. • ncurses terminfo is extensible anyway. It has been since 1999. If you give the -x option to tic, it compiles additional information which may be in the terminal description, using the syntax to determine types. If -x is omitted, tic warns about the unrecognized information. As an example of how this extensibility feature can be used, consider the case of OpenQM, whose developers copied more than 1000 lines of ncurses library code into their application to support some extended terminal capability features.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123