        def refresh(self):
            """
            Refresh the screen.
            """
            super().refresh()
            try:
                sys.stdout.flush()
            except OSError:
                pass
Refresh the screen.
asciimatics/screen.py