scmutil: extend termwidth() to return terminal height, renamed to termsize()
It appears crecord.py has its own termsize() function. I want to get rid of it. The fallback height is chosen from the default of cmd.exe on Windows, and VT100 on Unix.
Showing
- mercurial/scmposix.py 6 additions, 6 deletionsmercurial/scmposix.py
- mercurial/scmutil.py 1 addition, 1 deletionmercurial/scmutil.py
- mercurial/scmwindows.py 2 additions, 2 deletionsmercurial/scmwindows.py
- mercurial/ui.py 1 addition, 1 deletionmercurial/ui.py
- mercurial/win32.py 6 additions, 4 deletionsmercurial/win32.py
Loading
Please register or sign in to comment