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:
one
two

Actual output is:
two

Fix the documentation or fix the code :-)

----------
assignee: docs@python
components: Documentation, Extension Modules
files: chgat-bug.py
messages: 194552
nosy: docs@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue18669>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to