When the waddch function is used on a subwindow, it writes the character onto the underlying window as well. The addch routine performs the same function as waddch, but on the stdscr window. The cursor is moved after the character is written to the screen.