Next: , Previous: , Up: Components of a Curses Interface   [Contents][Index]

2.1 Terminal Capabilities

The first step in any Ncurses program is to understand the terminal’s capabilities and attributes. Ncurses includes a database of terminals and their capabilities called terminfo or perhaps termcap. When a Ncurses program is initialized, the type of terminal is queried, usually by examining the environment variable TERM, and the capabilities are read from the database.