summaryrefslogtreecommitdiff
path: root/pexpect/screen.py
Commit message (Collapse)AuthorAgeFilesLines
* Deprecation warning in pexpect.screenThomas Kluyver2015-09-121-0/+7
|
* Some changes based on reviewing the codeThomas Kluyver2014-08-041-21/+16
|
* Address review comments regarding referring to "unicode strings" in docstrings.David O'Shea2014-08-041-5/+5
|
* Change SPACE to be a unicode string.David O'Shea2014-08-021-3/+3
|
* Don't define __bytes__(), and don't define __unicode__() on Python 3.David O'Shea2014-08-011-21/+16
| | | | | | | The previous attempt to add unicode support tried to make Python 2 and 3 behave in the same way apart from __str__(). This commit makes the modules, and the tests, provide only __str__() on Python 3 and both __str__() and __unicode__() on Python 2.
* Rename codec and codec_errors to encoding and encoding_errors respectively.David O'Shea2014-08-011-10/+10
|
* Issue #84: Unicode support in screen and ANSI.David O'Shea2014-07-241-14/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit updates the the screen and ANSI modules to support Unicode under Python 2.x. Under Python 3.x, it was already supported because strings are Unicode by default. Now, on both Python versions: - The constructors accept a codec name (defaults to 'latin-1') and a scheme for handling encoding/decoding errors (defaults to 'replace'). The codec may be set to None to inhibit encoding/decoding. - Unicode is now used internally for storing the screen contents. - Methods that accept input characters will, if passed input of type 'bytes' (or, under Python 2.x, 'str'), use the specified codec to decode the input, otherwise treating it as Unicode. - Methods that return screen contents now return Unicode, with the exception of __str__() under Python 2.x, and __bytes__() in all versions of Python, which return the screen contents encoded using the specified codec. These changes are designed to work only with Python 2.6, 2.7, and 3.3 and later, specifically versions that provide both b'' and u'' string literals. The check in ANSI for characters being printable is also removed, as this prevents non-ASCII characters being accepted, which is not compatible with the goal of adding Unicode support. This addresses issue #83.
* Document screen and ANSIThomas Kluyver2013-09-251-36/+4
|
* Move screen -> pexpect.screenThomas Kluyver2013-09-191-0/+396
|
* Moved everything up one directory level.Noah Spurrier2012-10-261-396/+0
|
* This is mostly an update to the license.Noah Spurrier2012-10-251-55/+71
| | | | | I updated the license to a simpler FSF and OSI approved license. I also did some code cleanup.
* Added test for ANSI screen torture test.noah2007-07-131-3/+21
|
* Updated docs.noah2007-03-071-53/+148
|
* Added some svn:keywordsnoah2006-08-121-2/+1
|
* bd_serve and bd_client are much more usable now. Almost useful.noah2006-03-061-6/+1
|
* Making the bd_client and bc_server examples actually work and be usefull.noah2006-03-051-6/+29
|
* Added CVS variables to the source code for Revision and Date.noah2002-08-281-1/+4
|
* Implemented get_region().noah2002-08-271-2/+8
|
* Cleaning up ANSI.py. New ANSI name and new method 'get_region()' for screen.py.noah2002-08-271-0/+14
|
* incremental update.noah2002-08-261-0/+227