code: def fullscreen(self):
          
          self.stream.write(self.enter_fullscreen)
          try:
              yield
          finally:
              self.stream.write(self.exit_fullscreen)
docs: Return a context manager that enters fullscreen mode while inside it
          and restores normal mode on leaving.