It puts the stdscr into the terminal's best highlight mode. It puts the user-defined window into the terminal's best highlight mode. It turns off all attributes for stdscr. It turns off all attributes for the specified window. The vidputs subroutine outputs a string that puts the terminal in the specified attribute mode.
Characters are output through the putc subroutine.
The vidattr subroutine is the same as the vidputs subroutine except that characters are output through the putchar subroutine. Extracting Attributes You can use the results from the call to the winch subroutine to extract attribute information, including the color-pair number. The curses library provides alarm subroutines to signal the user. All curses options are initially turned off, so it is not necessary to turn them off before calling the endwin subroutine. This option's default is inherited from the tty driver.