Issue 18669: curses.chgat() moves cursor, documentation says it shouldn't (original) (raw)
Created on 2013-08-06 14:42 by productivememberofsociety666, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
chgat-bug.py | productivememberofsociety666,2013-08-06 16:26 | Code demonstrating curses.chgat() moving the cursor. |
Pull Requests | |||
---|---|---|---|
URL | Status | Linked | Edit |
PR 1430 | merged | python-dev,2017-05-04 18:51 |
Messages (5) | ||
---|---|---|
msg194552 - (view) | Author: productivememberofsociety666 (productivememberofsociety666) | Date: 2013-08-06 14:42 |
According to docs.python.org/2/library/curses.html#chgat (or any other version), curses.chgat() is not supposed to move the cursor at all. This is true if you don't give it x,y coordinates, but if you do, the cursor does in fact move to those coordinates, since it then uses C curses's mvchgat() internally and doesn't correct the position afterwards. See included file for demonstration: Expected output is: one two Actual output is: two Fix the documentation or fix the code :-) | ||
msg220998 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2014-06-19 15:58 |
Can we have a comment on this please. | ||
msg221533 - (view) | Author: Grady Martin (IronGrid) | Date: 2014-06-25 07:54 |
I get this error with 3.2.3, running Debian Stable. It's annoying because this error prevents curses apps from being able to highlight the current line. | ||
msg292350 - (view) | Author: Berker Peksag (berker.peksag) * ![]() |
Date: 2017-04-26 14:10 |
I think this is a documentation issue. curses.chgat() documentation tries to describe different signatures in one place and some of these signatures change the behavior of the function. For example, curses.chgat() calls mvwchgat() when users pass y and x to it and mvwchgat() is documented as "the mvwchgat function does a cursor move before acting". | ||
msg305545 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2017-11-04 08:49 |
New changeset b838cc3ff4e039af949c6a19bd896e98e944dcbe by Serhiy Storchaka (Chillar Anand) in branch 'master': bpo-18699: Corrected documentation for window.chgat in curses module (#1430) https://github.com/python/cpython/commit/b838cc3ff4e039af949c6a19bd896e98e944dcbe New changeset 6dbecd2cd9c9448b34e1a632509220f3c4cf7587 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-18699: Corrected documentation for window.chgat in curses module (GH-1430) (#4271) https://github.com/python/cpython/commit/6dbecd2cd9c9448b34e1a632509220f3c4cf7587 New changeset fd38819497fd2a52ada674f0c890f5b414d0e87f by Serhiy Storchaka in branch '2.7': [2.7] bpo-18699: Corrected documentation for window.chgat in curses module (GH-1430). (#4272) https://github.com/python/cpython/commit/fd38819497fd2a52ada674f0c890f5b414d0e87f There is a typo in the issue number in commit messages. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:49 | admin | set | github: 62869 |
2017-11-04 08:49:25 | serhiy.storchaka | set | messages: + |
2017-11-04 08:45:58 | serhiy.storchaka | set | status: open -> closedstage: needs patch -> resolvedresolution: fixedversions: - Python 3.5 |
2017-11-01 18:50:53 | serhiy.storchaka | set | assignee: docs@python -> serhiy.storchakanosy: + serhiy.storchaka |
2017-05-04 18:51:37 | python-dev | set | pull_requests: + <pull%5Frequest1558> |
2017-04-26 14:24:56 | BreamoreBoy | set | nosy: - BreamoreBoy |
2017-04-26 14:10:13 | berker.peksag | set | versions: + Python 3.6, Python 3.7, - Python 3.2, Python 3.4nosy: + berker.peksagmessages: + keywords: + easystage: needs patch |
2014-06-25 07:54:34 | IronGrid | set | nosy: + IronGridmessages: + versions: + Python 3.2 |
2014-06-19 15:58:04 | BreamoreBoy | set | nosy: + BreamoreBoymessages: + versions: - Python 2.6, Python 3.1, Python 3.2, Python 3.3 |
2013-08-06 16:26:45 | productivememberofsociety666 | set | files: + chgat-bug.py |
2013-08-06 16:25:45 | productivememberofsociety666 | set | files: - chgat-bug.py |
2013-08-06 14:42:50 | productivememberofsociety666 | create |