~lifeless/bzrtools/trunk

« back to all changes in this revision

Viewing changes to terminal.py

  • Committer: Robert Collins
  • Date: 2008-07-08 04:11:21 UTC
  • mfrom: (623.1.33 bzrtools)
  • Revision ID: robertc@robertcollins.net-20080708041121-lo0k7os2y03uclt2
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    if sys.platform == "win32":
29
29
        return False
30
30
    import curses
31
 
    curses.setupterm()
 
31
    try:
 
32
        curses.setupterm()
 
33
    except curses.error:
 
34
        return False
32
35
    return bool(curses.tigetstr('setaf'))
33
36
 
34
37
colors = {