def _env_size(self):
        'Tries to find the term_width from the environment.'

        return int(os.environ.get('COLUMNS', self._DEFAULT_TERMSIZE)) - 1
Tries to find the term_width from the environment.
metadrive/render_pipeline/rplibs/progressbar/__init__.py