diff options
| author | Jeff Quast <contact@jeffquast.com> | 2015-09-22 12:42:24 -0700 |
|---|---|---|
| committer | Jeff Quast <contact@jeffquast.com> | 2015-09-22 12:42:24 -0700 |
| commit | 3c1bc018218b86177e1cdf8e93ead035afacc421 (patch) | |
| tree | 7c928ee4ad19c6c9610849f5f3b4bde7b5e8d4c4 /doc | |
| parent | ae480683db601dc162ab2d02643ff84e1c3786be (diff) | |
| parent | ea586fb9a545854f9b1212779653ec80f3428a2c (diff) | |
| download | pexpect-3c1bc018218b86177e1cdf8e93ead035afacc421.tar.gz | |
Merge remote-tracking branch 'origin/master' into default-handle-sighupdefault-handle-sighup-pull
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/FAQ.rst | 26 | ||||
| -rw-r--r-- | doc/history.rst | 3 |
2 files changed, 21 insertions, 8 deletions
diff --git a/doc/FAQ.rst b/doc/FAQ.rst index 0636772..1964b12 100644 --- a/doc/FAQ.rst +++ b/doc/FAQ.rst @@ -1,6 +1,17 @@ FAQ === +**Q: Where can I get help with pexpect? Is there a mailing list?** + +A: You can use the `pexpect tag on Stackoverflow <http://stackoverflow.com/questions/tagged/pexpect>`__ +to ask questions specifically related to Pexpect. For more general Python +support, there's the python-list_ mailing list, and the `#python`_ +IRC channel. Please refrain from using github for general +python or systems scripting support. + +.. _python-list: https://mail.python.org/mailman/listinfo/python-list +.. _#python: https://www.python.org/community/irc/ + **Q: Why don't shell pipe and redirect (| and >) work when I spawn a command?** A: Remember that Pexpect does NOT interpret shell meta characters such as @@ -117,14 +128,13 @@ another application. **Q: Can I do screen scraping with this thing?** A: That depends. If your application just does line-oriented output then -this is easy. If it does screen-oriented output then it may work, but it -could be hard. For example, trying to scrape data from the 'top' command -would be hard. The top command repaints the text window. - -I am working on an ANSI / VT100 terminal emulator that will have methods -to get characters from an arbitrary X,Y coordinate of the virtual screen. -It works and you can play with it (see :mod:`pexpect.ANSI`), but I have -no working examples at this time. +this is easy. If a program emits many terminal sequences, from video +attributes to screen addressing, such as programs using curses, then +it may become very difficult to ascertain what text is displayed on a screen. + +We suggest using the `pyte <https://github.com/selectel/pyte>`_ library to +screen-scrape. The module :mod:`pexpect.ANSI` released with previous versions +of pexpect is now marked deprecated and may be removed in the future. **Q: I get strange behavior with pexect and gevent** diff --git a/doc/history.rst b/doc/history.rst index 06e2ef8..b33e4d9 100644 --- a/doc/history.rst +++ b/doc/history.rst @@ -17,6 +17,9 @@ Version 4.0 * It is now possible to call :meth:`~.wait` multiple times, or after a process is already determined to be terminated without raising an exception (:ghpull:`211`). +* New :class:`pexpect.spawn` keyword argument, ``dimensions=(rows, columns)`` + allows setting terminal screen dimensions before launching a program + (:ghissue:`122`). * Fix regression that prevented executable, but unreadable files from being found when not specified by absolute path -- such as /usr/bin/sudo (:ghissue:`104`). |
