comparison 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
comparison
equal deleted inserted replaced
30313:392633d7860e 30314:365812902904
51 if userprofile and userprofile != home: 51 if userprofile and userprofile != home:
52 path.append(os.path.join(userprofile, 'mercurial.ini')) 52 path.append(os.path.join(userprofile, 'mercurial.ini'))
53 path.append(os.path.join(userprofile, '.hgrc')) 53 path.append(os.path.join(userprofile, '.hgrc'))
54 return path 54 return path
55 55
56 def termwidth(ui): 56 def termsize(ui):
57 return win32.termwidth() 57 return win32.termsize()