Commits on May 21, 2014
  1. @fwenzel

    Merge pull request #63 from lowks/patch-1

    Remove Python 2.5 from travis.yml because Travis doesn't offer it anymore.
    fwenzel committed May 21, 2014
Commits on May 18, 2014
  1. @lowks

    Update .travis.yml

    The build is failing because of this: travis-ci/travis-ci#1668
    lowks committed May 18, 2014
Commits on May 1, 2014
  1. Merge pull request #62 from fwenzel/travis-link

    Link to Travis builds in readme. #60.
    committed May 1, 2014
Commits on Apr 29, 2014
  1. @fwenzel
Commits on Apr 9, 2014
  1. Merge pull request #57 from jquast/patch-2

    spelling error, desciptor -> descriptor.
    committed Apr 9, 2014
Commits on Mar 20, 2014
  1. @jquast
Commits on Nov 6, 2013
  1. Support terminal types, such as kermit and avatar, that use bytes 127…

    …-255 in their escape sequences. Close #47.
    committed Nov 6, 2013
  2. Update version history.

    committed Nov 6, 2013
  3. Remove fallback to 24x80, and fix docstring formatting.

    There are some advantages to falling back to 24x80: for example, the ability to easily render output based on height and width when being piped through `less`. However, that's a backward incompatible change--we explicitly documented the None return values in earlier versions--so I don't want to make it lightly. Reverting it for now because I want to get the unquestionable parts of this merged in.
    committed Nov 6, 2013
Commits on Nov 5, 2013
  1. @jquast

    docfix: 25 x 80 -> 24 x 80

    jquast committed Nov 5, 2013
  2. @jquast

    Revert "Merge remote-tracking branch 'origin/bugfix-3' into bugfix-1"

    This reverts commit 6d8fe01, reversing
    changes made to 4cff579.
    jquast committed Nov 5, 2013
  3. @jquast
  4. @jquast
  5. @jquast

    resolve any 'must call (at least) setupterm() first' errors

    avoid calling tparm when self.does_styling is False, which resolves
    issues with attempting to use things (such as nosetests progressive)
    where the terminal is not a tty.
    its also a "pokemon exception" and is emitted for a good reason, we
    certainly should not be calling tparm without calling setupterm()
    first !
    jquast committed Nov 5, 2013
  6. @jquast

    turtles all the way down for NullCallableString()

    allow term.color(5)('shmoo') to succeed for terminals where stream is
    not a tty.
    jquast committed Nov 5, 2013
  7. @jquast

    encode tparm output as latin1

    as explained in the comments above the decode().encode() wrapper,
    certain terminal kinds, such as 'avatar' or 'kermit' emit 8-bit bytes
    that are not legal utf-8 tender. this issue is resolved by encoding
    these values as latin1, which leaves their values unmolested. This is
    exaplified by a gist:
    If you don't believe me, try kind='kermit' or kind='avatar', along with
    t.cup(n, n). Unfortunately, the state of the test cases in the master
    branch (issue #33) does not allow to add a test case in this branch
    until that one is pulled to master.
    Hell, I'll go ahead and make a third (and final) pull request for that one,
    jquast committed Nov 5, 2013
  8. @jquast

    implement height and width fallback for non-tty

    once the height and width test is resolved to actually test, we
    notice that running `nosetests 2>&1 | less' & etc. will fail:
    the ioctl for TIOCGWINSZ fails for non-ttys (such as used by travis CI).
    So, we fall-through to the LINES, COLUMNS environment variables, with
    default values of (24, 80). (24, 80) has been a fairly standard
    screensize for IBM PC-DOS and Apple ][ (beginning with the 80-column
    character card), and C128. It is also the default for xterm, and many
    classic terminals (such as a vt220) or emulating terminals (such as
    telix), or bulletin board servers (such as teleguard) where a 'status
    line' is also present.  In reality, these screens are capable of *25*
    lines, but the 25th line is reserved for the status line.
    Irregardless, non-zero must be returned for 'height' and 'width'
    properties, as a value of 0 may become a "divide by zero" error
    for mathematical operations that make use of the terminal height or
    width in scripts that the user may chose to pipe to 'less -r' or some
    such. In these situations, even though a value is returned, operations
    such as 'move(x, y)' would still become 'stripped' due to 'is_a_tty'
    becoming False, so there is no actual harm in providing a terminal size
    that is not legal.
    jquast committed Nov 5, 2013
  9. @jquast
Commits on Sep 10, 2013
  1. Bring the readme up to date.

    committed Sep 10, 2013
  2. Merge the property-ization of is_a_tty and does_styling, some PEP-8 f…

    …ixes, and the removal of some unused imports. Close #37.
    committed Sep 10, 2013
  3. Fix some spelling and grammar.

    committed Sep 10, 2013
Commits on Sep 9, 2013
  1. @jquast

    rollback undesired changes per feedback

    - remove module-level docstring
      (but? pep-257, "All modules should normally have docstrings" ??)
    - try to restore original import ordering
      (unused imports remain removed)
    - restore deep import of os environ, isatty
    - restore "caching doesn't work" scrap code
    jquast committed Sep 9, 2013
Commits on Sep 8, 2013
  1. @jquast
Commits on Sep 7, 2013
  1. @jquast
  2. @jquast

    more merge fixes for does_styling property-rework

    _does_styling is write attribute, does_styling is read-only property
    jquast committed Sep 7, 2013
  3. @jquast
  4. @jquast

    Merge pull request #2 from jquast/import-rework

    Import rework
    jquast committed Sep 7, 2013
  5. @jquast

    import sorting

    jquast committed Sep 7, 2013
  6. @jquast

    'os' imported but unused

    jquast committed Sep 7, 2013
  7. @jquast
  8. @jquast

    Merge pull request #1 from jquast/property-rework

    refactor is_a_tty and does_styling as properties
    jquast committed Sep 7, 2013