When the waddstr function is used on a subwindow, the string is written onto the underlying window as well. The addstr routine performs the same function as waddstr, but on the stdscr window. The cursor position changes as a result of calling this routine.