diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2019-05-17 22:54:02 (GMT) |
---|---|---|
committer | Lisa Roach <lisaroach14@gmail.com> | 2019-05-17 22:54:02 (GMT) |
commit | e7b1136ec3b40d174d71f2195cceaadf4fe9539c (patch) | |
tree | 44344743d612b945226e82f7a988b1c205b70019 /Doc/library | |
parent | 51a860ee01a9e96f8013fe6ca836ec95e7eb3010 (diff) | |
download | cpython-e7b1136ec3b40d174d71f2195cceaadf4fe9539c.zip cpython-e7b1136ec3b40d174d71f2195cceaadf4fe9539c.tar.gz cpython-e7b1136ec3b40d174d71f2195cceaadf4fe9539c.tar.bz2 |
Document a workaround for a curses bug (GH-13209)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/curses.rst | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst index 2a4d9ce..7d1e753 100644 --- a/Doc/library/curses.rst +++ b/Doc/library/curses.rst @@ -708,9 +708,16 @@ the following methods and attributes: .. note:: - Writing outside the window, subwindow, or pad raises :exc:`curses.error`. - Attempting to write to the lower right corner of a window, subwindow, - or pad will cause an exception to be raised after the string is printed. + * Writing outside the window, subwindow, or pad raises :exc:`curses.error`. + Attempting to write to the lower right corner of a window, subwindow, + or pad will cause an exception to be raised after the string is printed. + + * A `bug in ncurses <https://bugs.python.org/issue35924>`_, the backend + for this Python module, can cause SegFaults when resizing windows. This + is fixed in ncurses-6.1-20190511. If you are stuck with an earlier + ncurses, you can avoid triggering this if you do not call :func:`addstr` + with a *str* that has embedded newlines. Instead, call :func:`addstr` + separately for each line. .. method:: window.attroff(attr) |