diff mercurial/scmwindows.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 5c379b1f56c7
children d623cc6b3742
line wrap: on
line diff
--- a/mercurial/scmwindows.py	Thu Oct 20 22:57:12 2016 +0900
+++ b/mercurial/scmwindows.py	Thu Oct 20 23:09:05 2016 +0900
@@ -53,5 +53,5 @@
         path.append(os.path.join(userprofile, '.hgrc'))
     return path
 
-def termwidth(ui):
-    return win32.termwidth()
+def termsize(ui):
+    return win32.termsize()