HPlogo MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 4 CURSES

Global Variables

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The global variables defined for CURSES are shown in Table 4-1 “Definitions of Global Variables”.

Table 4-1 Definitions of Global Variables

ConstantDescription
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_termCurrent terminal
curscrCurrent screen image
numcodes[ ]termcap capability codes
numfnames[ ]Full C names
numfnames[ ]terminfo capability codes
stdscr Standard screen supplied by initscr()
strcodes[ ]termcap capability names
strfnames[ ] Full C names
strnames[ ]terminfo capability names
ttytype Terminal type

 

Implementation Considerations

The curscr, sdscr, COLS, and LINES constants are identical to XPG/3. The COLORS, COLOR_PAIRS, boolcodes[], boolfnames[], boolnames[], numcodes[], numfnames[], numnames[], strcodes[], strfnames[], and strnames[] constants are UNIX System V implementations.

Portability

The COLORS, COLOR_PAIRS, boolcodes[ ], boolfnames[ ], boolnames[ ], numcodes[ ], numfnames[ ], numnames[ ], strcodes[ ], strfnames[ ], and strnames[ ] constants conform to UNIX System V. The curscr, sdscr, COLS, and LINES constants conform to HP-UX, UNIX System V, and XPG/3. The cur_term and ttytype constants conform to HP-UX and UNIX System V.

Feedback to webmaster