new_contents: import curses
  import curses.textpad
  
  def textpad(stdscr):
      curses.textpad.rectangle(stdscr, 0, 0, 20, 50)
      win = curses.newwin(19, 49, 1, 1)
  
      textbox = curses.textpad.Textbox(win)
      stdscr.refresh()
      textbox.edit()
      get_q(stdscr)
  
  def get_q(stdscr):
      while True:
          c = stdscr.getch()
          if c == ord('q'):
              break
  
  curses.wrapper(textpad)
  
subject: Add a textpad example