classification
Title: curses - new window methods: addchstr and addchnstr
Type: Stage:
Components: Extension Modules Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, wmula (2)
Priority: normal Keywords: patch

Created on 2007-07-10 22:48 by wmula, last changed 2008-01-19 22:42 by akuchling.

Files
File name Uploaded Description Edit Remove
_cursesmodule.diff wmula, 2007-07-10 22:48 patch
test_addchstr.py wmula, 2007-07-10 22:52 simple addchstr test
Messages (3)
msg52824 - (view) Author: Wojciech Mula (wmula) Date: 2007-07-10 22:48
This patch add two window methods: addchstr and addchnstr and also module attribute chtype_size.  Methods use addstr convention i.e. calling with/without new cursors coords is allowed.

Methods accept any buffer-object (string, array, ctypes string buffer) of length n*chtype_size.
msg52825 - (view) Author: Wojciech Mula (wmula) Date: 2007-07-10 22:52
File Added: test_addchstr.py
msg60240 - (view) Author: A.M. Kuchling (akuchling) Date: 2008-01-19 22:42
I'm doubtful about passing strings of characters that contain characters
+ attrs.  The usual convention used by the curses module is to allow
strings containing attributeless characters to display, or integers that
can include an attribute value.

Perhaps these functions can take an iterable containing either
1-character strings or integers, and assemble them into a C-level array.
History
Date User Action Args
2008-01-19 22:42:12akuchlingsetmessages: + msg60240
2008-01-12 01:15:52akuchlingsetassignee: akuchling
nosy: + akuchling
2007-07-10 22:48:41wmulacreate