Loop over the lines, using str.splitlines()
:
for y, line in enumerate(ascii_art.splitlines(), 2):
w.addstr(y, 2, line)
This uses enumerate()
to keep track of the y
position, putting the whole ascii-art string on the screen starting at position (2, 2).