~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to terminal.py

  • Committer: Alexander Belchenko
  • Date: 2006-07-18 20:37:53 UTC
  • mto: This revision was merged to the branch mainline in revision 421.
  • Revision ID: bialix@ukr.net-20060718203753-fa30c2f3cc59316b
don't use curses on win32

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
17
 
18
18
import os
 
19
import sys
19
20
 
20
21
__docformat__ = "restructuredtext"
21
22
__doc__ = "Terminal control functionality"
24
25
    # XXX The whole color handling should be rewritten to use terminfo
25
26
    # XXX before we get there, checking for setaf capability should do.
26
27
    # XXX See terminfo(5) for all the gory details.
 
28
    if sys.platform == "win32":
 
29
        return False
27
30
    import curses
28
31
    curses.setupterm()
29
32
    return bool(curses.tigetstr('setaf'))