Show More
@@ -234,8 +234,6 b' def _modesetup(ui, coloropt):' | |||||
234 | if os.name == 'nt': |
|
234 | if os.name == 'nt': | |
235 | term = os.environ.get('TERM') |
|
235 | term = os.environ.get('TERM') | |
236 | # TERM won't be defined in a vanilla cmd.exe environment. |
|
236 | # TERM won't be defined in a vanilla cmd.exe environment. | |
237 | if not term: |
|
|||
238 | realmode = 'win32' |
|
|||
239 |
|
237 | |||
240 | # UNIX-like environments on Windows such as Cygwin and MSYS will |
|
238 | # UNIX-like environments on Windows such as Cygwin and MSYS will | |
241 | # set TERM. They appear to make a best effort attempt at setting it |
|
239 | # set TERM. They appear to make a best effort attempt at setting it | |
@@ -244,7 +242,7 b' def _modesetup(ui, coloropt):' | |||||
244 | # gibberish, we error on the side of selecting "win32". However, if |
|
242 | # gibberish, we error on the side of selecting "win32". However, if | |
245 | # w32effects is not defined, we almost certainly don't support |
|
243 | # w32effects is not defined, we almost certainly don't support | |
246 | # "win32", so don't even try. |
|
244 | # "win32", so don't even try. | |
247 | if 'xterm' in term or not w32effects: |
|
245 | if (term and 'xterm' in term) or not w32effects: | |
248 | realmode = 'ansi' |
|
246 | realmode = 'ansi' | |
249 | else: |
|
247 | else: | |
250 | realmode = 'win32' |
|
248 | realmode = 'win32' |
General Comments 0
You need to be logged in to leave comments.
Login now