[PATCH] churn: get current terminal width if possible

Alexis S. L. Carvalho alexis at cecm.usp.br
Thu Jul 19 19:13:00 CDT 2007


Thus spake Christian Ebert:
> churn: get current terminal width if possible

Pushed to crew with a tiny change...

> +def get_tty_width():
> +    if 'COLUMNS' in os.environ:
> +        return os.environ['COLUMNS']

...missing int() here.

Thanks.

Alexis


More information about the Mercurial-devel mailing list