Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | docfix: 25 x 80 -> 24 x 80 | jquast | 2013-11-05 | 1 | -1/+1 | |
| | | ||||||
| * | Revert "Merge remote-tracking branch 'origin/bugfix-3' into bugfix-1" | jquast | 2013-11-04 | 2 | -27/+24 | |
| | | | | | | | | | | This reverts commit 6d8fe019be1e1c1bd1238980288e1451d99eba80, reversing changes made to 4cff579fbf395e7cfe3d12cb1b5f53ca535d6673. | |||||
| * | Merge remote-tracking branch 'origin/bugfix-3' into bugfix-1 | jquast | 2013-11-04 | 2 | -24/+27 | |
| |\ | ||||||
| | * | only perform color lookup for colored terminals | jquast | 2013-11-04 | 2 | -12/+14 | |
| | | | ||||||
| | * | resolve any 'must call (at least) setupterm() first' errors | jquast | 2013-11-04 | 1 | -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() | jquast | 2013-11-04 | 1 | -1/+6 | |
| |/ |/| | | | | | | | allow term.color(5)('shmoo') to succeed for terminals where stream is not a tty. | |||||
| * | implement height and width fallback for non-tty | jquast | 2013-11-04 | 1 | -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 integer | jquast | 2013-11-04 | 1 | -3/+3 | |
|/ | ||||||
* | Bring the readme up to date. | Erik Rose | 2013-09-09 | 1 | -1/+3 | |
| | ||||||
* | Add a docstring so Blessings looks better in the REPL's help(). | Erik Rose | 2013-09-09 | 1 | -0/+3 | |
| | ||||||
* | Merge the property-ization of is_a_tty and does_styling, some PEP-8 fixes, ↵ | Erik Rose | 2013-09-09 | 1 | -22/+32 | |
|\ | | | | | | | and the removal of some unused imports. Close #37. | |||||
| * | Fix some spelling and grammar. | Erik Rose | 2013-09-09 | 1 | -4/+4 | |
| | | ||||||
| * | rollback undesired changes per feedback | jquast | 2013-09-09 | 1 | -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_tty | jquast | 2013-09-07 | 1 | -1/+1 | |
| | | ||||||
| * | pep8, remove old "cache wanted" codefart | jquast | 2013-09-07 | 1 | -8/+5 | |
| | | ||||||
| * | more merge fixes for does_styling property-rework | jquast | 2013-09-07 | 1 | -1/+1 | |
| | | | | | | | | _does_styling is write attribute, does_styling is read-only property | |||||
| * | remove git-merge junk, CVS merges have been easier | jquast | 2013-09-07 | 1 | -7/+0 | |
| | | ||||||
| * | Merge pull request #2 from jquast/import-rework | Jeff Quast | 2013-09-07 | 0 | -0/+0 | |
| |\ | | | | | | | Import rework | |||||
| | * | import sorting | jquast | 2013-09-07 | 1 | -7/+13 | |
| | | | | | | | | | | | | using tool 'isort', https://github.com/timothycrosley/isort | |||||
| | * | 'os' imported but unused | jquast | 2013-09-07 | 1 | -3/+2 | |
| | | | ||||||
| | * | 'defaultdict' imported but unused | jquast | 2013-09-07 | 1 | -1/+0 | |
| | | | ||||||
| * | | import sorting | jquast | 2013-09-07 | 1 | -7/+13 | |
| | | | | | | | | | | | | using tool 'isort', https://github.com/timothycrosley/isort | |||||
| * | | 'os' imported but unused | jquast | 2013-09-07 | 1 | -2/+8 | |
| | | | ||||||
| * | | 'defaultdict' imported but unused | jquast | 2013-09-07 | 1 | -1/+0 | |
| | | | ||||||
| * | | Merge pull request #1 from jquast/property-rework | Jeff Quast | 2013-09-07 | 1 | -14/+24 | |
| |\ \ | | |/ | |/| | refactor is_a_tty and does_styling as properties | |||||
| | * | refactor is_a_tty and does_styling as properties | jquast | 2013-09-07 | 1 | -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 Rose | 2013-09-09 | 1 | -6/+12 | |
|/ | ||||||
* | Make PEP-8-compliant. | Erik Rose | 2013-08-31 | 1 | -17/+36 | |
| | ||||||
* | Add `fullscreen()` and `hidden_cursor()` to the auto-generated docs. | Erik Rose | 2013-08-30 | 2 | -1/+2 | |
| | ||||||
* | Add Sphinx build dir to gitignore. | Erik Rose | 2013-08-30 | 1 | -0/+1 | |
| | ||||||
* | Make does_styling attr public. Bump version to 1.6. | Erik Rose | 2013-08-30 | 4 | -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 Rose | 2013-08-30 | 1 | -1/+1 | |
| | ||||||
* | Replace the weird clear() test with what was originally intended. This one ↵1.5.1 | Erik Rose | 2013-08-30 | 1 | -6/+1 | |
| | | | | actually fails before the #31 fix. | |||||
* | Merge Vitja Makarov's NullCallableString tty-less parametrization fix. Close ↵ | Erik Rose | 2013-08-30 | 4 | -10/+54 | |
|\ | | | | | | | #31. | |||||
| * | Explain the new behavior to myself. Remove 1 test assertion. No non-test ↵ | Erik Rose | 2013-08-30 | 4 | -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 NullCallableString | Vitja Makarov | 2013-08-26 | 1 | -0/+9 | |
| | | ||||||
| * | Fix NullCallableString() when called with no or multiple arguments | Vitja Makarov | 2013-08-24 | 1 | -3/+5 | |
| | | ||||||
* | | Bring readme up to date. | Erik Rose | 2013-08-30 | 1 | -0/+2 | |
|/ | ||||||
* | Merge pull request #29 from vitek/master | Erik Rose | 2013-07-30 | 1 | -8/+13 | |
|\ | | | | | contextmanagers: Put state restore code into finally block | |||||
| * | contextmanagers: Put state restore code into finally block | Vitja Makarov | 2013-07-30 | 1 | -8/+13 | |
|/ | ||||||
* | Update changelog with the latest. | Erik Rose | 2013-05-15 | 1 | -0/+6 | |
| | ||||||
* | Fix tox.ini syntax to work around a bug in tox. | Erik Rose | 2013-04-24 | 1 | -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 Rose | 2013-04-10 | 1 | -1/+1 | |
| | ||||||
* | Make `python setup.py test` work without spurious errors. | Erik Rose | 2012-07-08 | 1 | -0/+7 | |
| | ||||||
* | Say why we let certain Travis build envs fail. Add Travis build badge to readme. | Erik Rose | 2012-07-08 | 2 | -3/+6 | |
| | ||||||
* | Add .travis.yml for Travis CI (http://travis-ci.org/) | Marc Abramowitz | 2012-06-28 | 1 | -0/+18 | |
| | ||||||
* | Add a few things to .gitignore | Marc Abramowitz | 2012-06-28 | 1 | -1/+6 | |
| | ||||||
* | Clean up fabfile. Remove test command; there are already 2 ways to run ↵ | Erik Rose | 2012-06-25 | 1 | -12/+7 | |
| | | | | tests. Import deeper. | |||||
* | It's the portability that gets you; you can turn off bold on ANSI terminals ↵1.5 | Erik Rose | 2012-06-18 | 1 | -2/+2 | |
| | | | | with some bits in the sgr sequence. | |||||
* | Provide a decent way to say "don't style". Closes #18. | Erik Rose | 2012-06-16 | 3 | -3/+15 | |
| |