The global variables defined for X/Open Curses are as follows:
| Constant | Description |
|---|---|
| COLORS | Number of colors supported by terminal |
| COLOR_PAIRS | Number of color pairs supported by terminal |
| COLS | Number of columns supported by terminal |
| LINES | Number of lines supported by terminal |
| boolcodes[] | termcap capability names |
| boolfnames[] | Full C names |
| boolnames[] | terminfo capability names |
| cur_term | Current terminal |
| curscr | Current screen image |
| numcodes[] | termcap capability codes |
| numfnames[] | Full C names |
| numfnames[] | terminfo capability codes |
| stdscr | Standard screen supplied by initscr() |
| strcodes[] | termcap capability name |
| strfnames[] | Full C names |
| strnames[] | terminfo capability names |
| ttytype | Terminal type |
The boolcodes[], boolfnames[], boolnames[], numcodes[] numfnames[], numnames[], strcodes[], strfnames[], strnames[], and ttytype constants conform to UNIX System V.
The curscr, sdscr, cur_term, COLS, LINES, COLORS, and COLOR_PAIRS, constants conform to UNIX System V and XPG4 version 2.