summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bring Python versions under test up to date.modern-python-versionsErik Rose2018-01-032-5/+7
| | | | | To heck with 3.2. Keep 3.3 just in case there's something special about it; I don't remember. Add 3.6 because it's the newest. Move installation stuff to a Travis `install` block so it doesn't show up as a test failure if it breaks. Stop using pip's `--use-mirrors` option, which is gone in modern pips.
* Link to the latest API documentation, which has moved to readthedocs in the ↵Erik Rose2018-01-031-0/+2
| | | | wake of pythonhosted's deprecation.
* Update readme. Bump version to 1.6.1.Erik Rose2018-01-033-2/+6
|
* Return 0 from 'number_of_colors' when does_styling is FalseAndrew Halberstadt2017-12-181-0/+3
|
* Merge pull request #63 from lowks/patch-1Fred Wenzel2014-05-201-1/+0
|\ | | | | Remove Python 2.5 from travis.yml because Travis doesn't offer it anymore.
| * Update .travis.ymlLow Kian Seong2014-05-191-1/+0
|/ | | The build is failing because of this: https://github.com/travis-ci/travis-ci/issues/1668
* Merge pull request #62 from fwenzel/travis-linkErik Rose2014-04-301-0/+4
|\ | | | | Link to Travis builds in readme. #60.
| * Link to Travis builds in readme. #60.Fred Wenzel2014-04-291-0/+4
|/
* Merge pull request #57 from jquast/patch-2Erik Rose2014-04-091-1/+1
|\ | | | | spelling error, desciptor -> descriptor.
| * spelling error, desciptor -> descriptor.Jeff Quast2014-03-191-1/+1
|/
* Support terminal types, such as kermit and avatar, that use bytes 127-255 in ↵1.6Erik Rose2013-11-053-7/+15
|\ | | | | | | their escape sequences. Close #47.
| * Tweak comments and update version history.Erik Rose2013-11-052-6/+7
| |
| * encode tparm output as latin1jquast2013-11-042-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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,
* | Fall back to env vars to find height and width. Make the height-and-width ↵Erik Rose2013-11-053-5/+19
|\ \ | |/ |/| | | test run. Close #46.
| * Update version history.Erik Rose2013-11-051-0/+2
| |
| * Remove fallback to 24x80, and fix docstring formatting.Erik Rose2013-11-051-7/+11
| | | | | | 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.
| * docfix: 25 x 80 -> 24 x 80jquast2013-11-051-1/+1
| |
| * Revert "Merge remote-tracking branch 'origin/bugfix-3' into bugfix-1"jquast2013-11-042-27/+24
| | | | | | | | | | This reverts commit 6d8fe019be1e1c1bd1238980288e1451d99eba80, reversing changes made to 4cff579fbf395e7cfe3d12cb1b5f53ca535d6673.
| * Merge remote-tracking branch 'origin/bugfix-3' into bugfix-1jquast2013-11-042-24/+27
| |\
| | * only perform color lookup for colored terminalsjquast2013-11-042-12/+14
| | |
| | * resolve any 'must call (at least) setupterm() first' errorsjquast2013-11-041-11/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 !
| | * turtles all the way down for NullCallableString()jquast2013-11-041-1/+6
| |/ |/| | | | | | | allow term.color(5)('shmoo') to succeed for terminals where stream is not a tty.
| * implement height and width fallback for non-ttyjquast2013-11-041-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * fix testing height and width for integerjquast2013-11-041-3/+3
|/
* Bring the readme up to date.Erik Rose2013-09-091-1/+3
|
* Add a docstring so Blessings looks better in the REPL's help().Erik Rose2013-09-091-0/+3
|
* Merge the property-ization of is_a_tty and does_styling, some PEP-8 fixes, ↵Erik Rose2013-09-091-22/+32
|\ | | | | | | and the removal of some unused imports. Close #37.
| * Fix some spelling and grammar.Erik Rose2013-09-091-4/+4
| |
| * rollback undesired changes per feedbackjquast2013-09-091-14/+13
| | | | | | | | | | | | | | | | | | - 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
| * is_a_tty property assignment fix -> _is_a_ttyjquast2013-09-071-1/+1
| |
| * pep8, remove old "cache wanted" codefartjquast2013-09-071-8/+5
| |
| * more merge fixes for does_styling property-reworkjquast2013-09-071-1/+1
| | | | | | | | _does_styling is write attribute, does_styling is read-only property
| * remove git-merge junk, CVS merges have been easierjquast2013-09-071-7/+0
| |
| * Merge pull request #2 from jquast/import-reworkJeff Quast2013-09-070-0/+0
| |\ | | | | | | Import rework
| | * import sortingjquast2013-09-071-7/+13
| | | | | | | | | | | | using tool 'isort', https://github.com/timothycrosley/isort
| | * 'os' imported but unusedjquast2013-09-071-3/+2
| | |
| | * 'defaultdict' imported but unusedjquast2013-09-071-1/+0
| | |
| * | import sortingjquast2013-09-071-7/+13
| | | | | | | | | | | | using tool 'isort', https://github.com/timothycrosley/isort
| * | 'os' imported but unusedjquast2013-09-071-2/+8
| | |
| * | 'defaultdict' imported but unusedjquast2013-09-071-1/+0
| | |
| * | Merge pull request #1 from jquast/property-reworkJeff Quast2013-09-071-14/+24
| |\ \ | | |/ | |/| refactor is_a_tty and does_styling as properties
| | * refactor is_a_tty and does_styling as propertiesjquast2013-09-071-14/+24
| |/ | | | | | | this makes documentation of these properties more definative, as the 'read-only' attributes that they actually are, removing the "class attributes" documentation headliners.
* | Make test docstrings PEP-8-compliant.Erik Rose2013-09-091-6/+12
|/
* Make PEP-8-compliant.Erik Rose2013-08-311-17/+36
|
* Add `fullscreen()` and `hidden_cursor()` to the auto-generated docs.Erik Rose2013-08-302-1/+2
|
* Add Sphinx build dir to gitignore.Erik Rose2013-08-301-0/+1
|
* Make does_styling attr public. Bump version to 1.6.Erik Rose2013-08-304-13/+21
| | | This is more often what's intended when is_a_tty is examined. While a caller could keep track of what he's passed to the Terminal constructor, it is often more convenient to have the info available directly on the instance, which we're already passing around everywhere.
* Fix some ReST in readme.Erik Rose2013-08-301-1/+1
|
* Replace the weird clear() test with what was originally intended. This one ↵1.5.1Erik Rose2013-08-301-6/+1
| | | | actually fails before the #31 fix.
* Merge Vitja Makarov's NullCallableString tty-less parametrization fix. Close ↵Erik Rose2013-08-304-10/+54
|\ | | | | | | #31.