In curses.h file , there is a external variable declaration : extern int LINES, COLS Can anyone tell me where they (LINES, COLS) are defined? Are they set by reading the termcap database ? How can I read the lines and colums information from that database? HP Wei (wei at princeton) Thanks!