Mercurial > public > mercurial-scm > hg
comparison mercurial/windows.py @ 12689:c52c629ce19e
termwidth: move to ui.ui from util
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sun, 10 Oct 2010 10:06:36 -0500 |
parents | 516b000fbb7e |
children | 6c9345f9edca |
comparison
equal
deleted
inserted
replaced
12688:8c034a825cfe | 12689:c52c629ce19e |
---|---|
354 return pid | 354 return pid |
355 | 355 |
356 def gethgcmd(): | 356 def gethgcmd(): |
357 return [sys.executable] + sys.argv[:1] | 357 return [sys.executable] + sys.argv[:1] |
358 | 358 |
359 def termwidth_(): | 359 def termwidth(): |
360 # cmd.exe does not handle CR like a unix console, the CR is | 360 # cmd.exe does not handle CR like a unix console, the CR is |
361 # counted in the line length. On 80 columns consoles, if 80 | 361 # counted in the line length. On 80 columns consoles, if 80 |
362 # characters are written, the following CR won't apply on the | 362 # characters are written, the following CR won't apply on the |
363 # current line but on the new one. Keep room for it. | 363 # current line but on the new one. Keep room for it. |
364 return 79 | 364 return 79 |