[New-bugs-announce] [issue18669] curses.chgat() moves cursor, documentation says it shouldn't

productivememberofsociety666 report at bugs.python.org
Tue Aug 6 16:42:50 CEST 2013

New submission from productivememberofsociety666:

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:

Actual output is:

Fix the documentation or fix the code :-)

assignee: docs at python
components: Documentation, Extension Modules
files: chgat-bug.py
messages: 194552
nosy: docs at python, productivememberofsociety666
priority: normal
severity: normal
status: open
title: curses.chgat() moves cursor, documentation says it shouldn't
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file31175/chgat-bug.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list