For all other functionality, curses routines are more suitable and their use is recommended. Initially, setupterm should be called. Note that setupterm is automatically called by initscr and newterm . If these environment variables do not exist and the program is run- ning in a window, the current window size is used. Parameterized strings should be passed through tparm to instantiate them.
All output is to file descriptor fildes which is initialized for output.
If errret is not null, then setupterm returns OK or ERR and stores a status value in the integer pointed to by errret . If errret is null, setupterm prints an error message upon finding an error and exits. The setterm routine is being replaced by setupterm . The set- term routine is included here for BSD compatibility, and is not recommended for new programs. It assumes that the windows and the input and output options are the same as when memory was saved, but the terminal type and baud rate may be different.