def __curses():
    """Try to discover terminal width with curses library."""
    try:
        import curses
        curses.setupterm()
        cr = curses.tigetnum('cols'), curses.tigetnum('lines')
    except Exception:
        return None
    return cr
