def term_resized(self, new_y, new_x): """handle terminal resize""" self.pad = curses.newpad(new_y, new_x) self.max_y = new_y self.max_x = new_x