Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on May 21, 2014
  1. @fwenzel

    Merge pull request #63 from lowks/patch-1

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

    Update .travis.yml

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

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

    authored
    spelling error, desciptor -> descriptor.
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…

    authored
    …-255 in their escape sequences. Close #47.
  2. Update version history.

    authored
  3. Remove fallback to 24x80, and fix docstring formatting.

    authored
    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.
Commits on Nov 5, 2013
  1. @jquast

    docfix: 25 x 80 -> 24 x 80

    jquast authored
  2. @jquast

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

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

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

    jquast authored
    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 !
  6. @jquast

    turtles all the way down for NullCallableString()

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

    encode tparm output as latin1

    jquast authored
    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: https://gist.github.com/jquast/5649654
    
    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,
  8. @jquast

    implement height and width fallback for non-tty

    jquast authored
    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.
  9. @jquast
Commits on Sep 10, 2013
  1. Bring the readme up to date.

    authored
  2. Merge the property-ization of is_a_tty and does_styling, some PEP-8 f…

    authored
    …ixes, and the removal of some unused imports. Close #37.
Commits on Sep 9, 2013
  1. @jquast

    rollback undesired changes per feedback

    jquast authored
    - 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
Commits on Sep 8, 2013
  1. @jquast
Commits on Sep 7, 2013
  1. @jquast
  2. @jquast

    more merge fixes for does_styling property-rework

    jquast authored
    _does_styling is write attribute, does_styling is read-only property
  3. @jquast
  4. @jquast

    Merge pull request #2 from jquast/import-rework

    jquast authored
    Import rework
  5. @jquast

    import sorting

    jquast authored
  6. @jquast

    'os' imported but unused

    jquast authored
  7. @jquast
  8. @jquast

    Merge pull request #1 from jquast/property-rework

    jquast authored
    refactor is_a_tty and does_styling as properties
Something went wrong with that request. Please try again.