[windows] no curses support (closes #110039)

We should not try to use curses by default on windows. It will never works.

authorAlain Leufroy <alain.leufroy@logilab.fr>
changeset08aae20815ec
branchdefault
phasepublic
hiddenno
parent revision#25e2eb7bc04f [start] refactor interface type "parsing" and initialisation (close #110038)
child revision#fe8a11cd1fa4 [windows] standalone repo viewer: read %home%\hgview.ini only (#102981)
files modified by this revision
hgviewlib/application.py
# HG changeset patch
# User Alain Leufroy <alain.leufroy@logilab.fr>
# Date 1351262925 -7200
# Fri Oct 26 16:48:45 2012 +0200
# Node ID 08aae20815ec058760638a925e9a42950c8baf67
# Parent 25e2eb7bc04febd876b84d276de9ba4934cf89f8
[windows] no curses support (closes #110039)

We should not try to use curses by default on windows. It will never works.

diff --git a/hgviewlib/application.py b/hgviewlib/application.py
@@ -129,11 +129,14 @@
1      inter = opts.interface
2      if not inter:
3          inter = config.getInterface()
4 
5      if inter is None:
6 -        interfaces = ['qt', 'raw']
7 +        interfaces = ['qt']
8 +        if os.name != 'nt':
9 +            # if we are not on Windows try terms fallback
10 +            interfaces.append('raw')
11      elif inter == 'qt':
12          interfaces = ['qt']
13      elif inter in ('raw', 'curses'):
14          interfaces = [inter]
15      else: