Help for this page

Select Code to Download


  1. or download this
    # $ENV{COLUMNS} isn't set when running through putty (unless from with
    +in emacs)
    # GetTerminalSize returns 0 from emacs, but ok from putty
    ...
        -t STDOUT && return (GetTerminalSize)[0] || $ENV{COLUMNS} || 72;
        return 72;
    }