I have written the following code:-
import curses
from curses import wrapper
def main(stdscr):
stdscr.clear() # clears screen
stdscr.addstr(10, 10, "Hello World!") # adds text to the screen
stdscr.addstr(10, 12, "overwritten")
stdscr.addstr(15, 25, "Tim is great.")
stdscr.refresh() # refresh screen
stdscr.getch()
wrapper(main)