~benoit.pierre/bzrtools/shell_improvements

« back to all changes in this revision

Viewing changes to terminal.py

  • Committer: Benoît Pierre
  • Date: 2008-11-30 16:02:59 UTC
  • mfrom: (682.1.5 bzrtools)
  • Revision ID: benoit.pierre@gmail.com-20081130160259-3klyr8tq3asr7kbp
Merge with upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    # XXX See terminfo(5) for all the gory details.
28
28
    if sys.platform == "win32":
29
29
        return False
 
30
    if not sys.stdout.isatty():
 
31
        return False
30
32
    import curses
31
33
    try:
32
34
        curses.setupterm()