summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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.
| * Explain the new behavior to myself. Remove 1 test assertion. No non-test ↵Erik Rose2013-08-304-13/+46
| | | | | | | | | | | | behavior changes. Bump version to 1.5.1. Remove one test assertion that already occurs almost verbatim in test_formatting_functions_without_tty().
| * Add testcase for NullCallableStringVitja Makarov2013-08-261-0/+9
| |
| * Fix NullCallableString() when called with no or multiple argumentsVitja Makarov2013-08-241-3/+5
| |
* | Bring readme up to date.Erik Rose2013-08-301-0/+2
|/
* Merge pull request #29 from vitek/masterErik Rose2013-07-301-8/+13
|\ | | | | contextmanagers: Put state restore code into finally block
| * contextmanagers: Put state restore code into finally blockVitja Makarov2013-07-301-8/+13
|/
* Update changelog with the latest.Erik Rose2013-05-151-0/+6
|
* Fix tox.ini syntax to work around a bug in tox.Erik Rose2013-04-241-1/+2
| | | Tox was using the entire line, comment and all, as the folder name and making that ridiculous folder.
* Add py33 to tox.Erik Rose2013-04-101-1/+1
|
* Make `python setup.py test` work without spurious errors.Erik Rose2012-07-081-0/+7
|
* Say why we let certain Travis build envs fail. Add Travis build badge to readme.Erik Rose2012-07-082-3/+6
|
* Add .travis.yml for Travis CI (http://travis-ci.org/)Marc Abramowitz2012-06-281-0/+18
|
* Add a few things to .gitignoreMarc Abramowitz2012-06-281-1/+6
|
* Clean up fabfile. Remove test command; there are already 2 ways to run ↵Erik Rose2012-06-251-12/+7
| | | | tests. Import deeper.
* It's the portability that gets you; you can turn off bold on ANSI terminals ↵1.5Erik Rose2012-06-181-2/+2
| | | | with some bits in the sgr sequence.
* Provide a decent way to say "don't style". Closes #18.Erik Rose2012-06-163-3/+15
|