diff mercurial/scmutil.py @ 30314:365812902904

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.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 20 Oct 2016 23:09:05 +0900
parents 4b1af1c867fa
children 854190becacb
line wrap: on
line diff
--- a/mercurial/scmutil.py	Thu Oct 20 22:57:12 2016 +0900
+++ b/mercurial/scmutil.py	Thu Oct 20 23:09:05 2016 +0900
@@ -40,7 +40,7 @@
 
 systemrcpath = scmplatform.systemrcpath
 userrcpath = scmplatform.userrcpath
-termwidth = scmplatform.termwidth
+termsize = scmplatform.termsize
 
 class status(tuple):
     '''Named tuple with a list of files per status. The 'deleted', 'unknown'