~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to terminal.py

  • Committer: Adeodato Simó
  • Date: 2006-07-12 18:17:03 UTC
  • mto: This revision was merged to the branch mainline in revision 416.
  • Revision ID: dato@net.com.org.es-20060712181703-af9e1c81c08d3af3
Make clean-tree --detritus or --ignored not delete also unknown files,
and add --unknown, noting it's the default option.

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
20
19
 
21
20
__docformat__ = "restructuredtext"
22
21
__doc__ = "Terminal control functionality"
25
24
    # XXX The whole color handling should be rewritten to use terminfo
26
25
    # XXX before we get there, checking for setaf capability should do.
27
26
    # XXX See terminfo(5) for all the gory details.
28
 
    if sys.platform == "win32":
29
 
        return False
30
27
    import curses
31
28
    curses.setupterm()
32
29
    return bool(curses.tigetstr('setaf'))