screen = curses.initscr()
resize = curses.is_term_resized(y, x)
if resize is True:
    y, x = screen.getmaxyx()
screen.clear()
curses.resizeterm(y, x)
screen.refresh()
Python Curses Handling Window (Terminal) Resize