Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-43084: Return bool instead of int from curses.window.enclose() (GH-24398) | Serhiy Storchaka | 2021-04-05 | 1 | -4/+4 |
| | |||||
* | bpo-43108: Fix a reference leak in the curses module (GH-24420) | Pablo Galindo | 2021-02-02 | 1 | -1/+3 |
| | |||||
* | bpo-41798: Allocate the _curses._C_API on the heap memory (GH-24186) | Hai Shi | 2021-01-22 | 1 | -9/+30 |
| | |||||
* | bpo-39273: Expose BUTTON5_* constants in the curses module if available ↵ | Zackery Spytz | 2021-01-14 | 1 | -0/+8 |
| | | | | (GH-17996) | ||||
* | bpo-42681: Fix test_curses failures related to color pairs (GH-24089) | Serhiy Storchaka | 2021-01-05 | 1 | -20/+40 |
| | | | | | | | On ncurses 6.1 pair numbers are limited by SHORT_MAX-1, even with extended color support. Improve error reporting and tests for color functions. | ||||
* | bpo-42681: Fix range checks for color and pair numbers in curses (GH-23874) | Serhiy Storchaka | 2021-01-03 | 1 | -45/+59 |
| | |||||
* | bpo-42519: Replace PyObject_MALLOC() with PyObject_Malloc() (GH-23587) | Victor Stinner | 2020-12-01 | 1 | -1/+1 |
| | | | | | | | | | No longer use deprecated aliases to functions: * Replace PyObject_MALLOC() with PyObject_Malloc() * Replace PyObject_REALLOC() with PyObject_Realloc() * Replace PyObject_FREE() with PyObject_Free() * Replace PyObject_Del() with PyObject_Free() * Replace PyObject_DEL() with PyObject_Free() | ||||
* | bpo-42161: Modules/ uses _PyLong_GetZero() and _PyLong_GetOne() (GH-22998) | Victor Stinner | 2020-10-27 | 1 | -3/+4 |
| | | | | | | Use _PyLong_GetZero() and _PyLong_GetOne() in Modules/ directory. _cursesmodule.c and zoneinfo.c are now built with Py_BUILD_CORE_MODULE macro defined. | ||||
* | bpo-36982: Add support for extended color functions in ncurses 6.1 (GH-17536) | Hans Petter Jansson | 2020-08-03 | 1 | -28/+166 |
| | | | Co-authored-by: Jeffrey Kintscher <websurfer@surf2c.net> | ||||
* | bpo-39465: Don't access directly _Py_Identifier members (GH-20043) | Victor Stinner | 2020-05-12 | 1 | -2/+2 |
| | | | | | * Replace id->object with _PyUnicode_FromId(&id) * Use _Py_static_string_init(str) macro to initialize statically name_op in typeobject.c. | ||||
* | bpo-39943: Add the const qualifier to pointers on non-mutable PyBytes data. ↵ | Serhiy Storchaka | 2020-04-12 | 1 | -4/+4 |
| | | | | (GH-19472) | ||||
* | bpo-40170: PyObject_NEW() becomes an alias to PyObject_New() (GH-19379) | Victor Stinner | 2020-04-08 | 1 | -1/+1 |
| | | | | | | | | | | | | The PyObject_NEW() macro becomes an alias to the PyObject_New() macro, and the PyObject_NEW_VAR() macro becomes an alias to the PyObject_NewVar() macro, to hide implementation details. They no longer access directly the PyTypeObject.tp_basicsize member. Exclude _PyObject_SIZE() and _PyObject_VAR_SIZE() macros from the limited C API. Replace PyObject_NEW() with PyObject_New() and replace PyObject_NEW_VAR() with PyObject_NewVar(). | ||||
* | bpo-40024: Update C extension modules to use PyModule_AddType() (GH-19119) | Dong-hee Na | 2020-03-24 | 1 | -2/+3 |
| | | | | | | Update _asyncio, _bz2, _csv, _curses, _datetime, _io, _operator, _pickle, _queue, blake2, multibytecodec and overlapped C extension modules to use PyModule_AddType(). | ||||
* | bpo-39802: Only expose set_escdelay and set_tabsize when curses extensions ↵ | Batuhan Taşkaya | 2020-03-03 | 1 | -0/+6 |
| | | | | are activated (GH-18705) | ||||
* | bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) | Victor Stinner | 2020-02-07 | 1 | -1/+1 |
| | | | Replace direct access to PyObject.ob_type with Py_TYPE(). | ||||
* | bpo-36589: Fix the error handling in curses.update_lines_cols(). (GH-12766) | Zackery Spytz | 2019-11-17 | 1 | -8/+21 |
| | | | | Return None instead of 1. | ||||
* | bpo-38312: Add curses.{get,set}_escdelay and curses.{get,set}_tabsize. ↵ | Anthony Sottile | 2019-10-31 | 1 | -0/+84 |
| | | | | (GH-16938) | ||||
* | bpo-37206: Unrepresentable default values no longer represented as None. ↵ | Serhiy Storchaka | 2019-09-14 | 1 | -2/+2 |
| | | | | | | | (GH-13933) In ArgumentClinic, value "NULL" should now be used only for unrepresentable default values (like in the optional third parameter of getattr). "None" should be used if None is accepted as argument and passing None has the same effect as not passing the argument at all. | ||||
* | bpo-37738: Fix curses addch(str, color_pair) (GH-15071) | Victor Stinner | 2019-08-14 | 1 | -3/+15 |
| | | | | | Fix the implementation of curses addch(str, color_pair): pass the color pair to setcchar(), instead of always passing 0 as the color pair. | ||||
* | bpo-37695: Correct unget_wch error message. (GH-14986) | Anthony Sottile | 2019-07-31 | 1 | -2/+2 |
| | |||||
* | bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267) | Jeroen Demeyer | 2019-07-08 | 1 | -1/+1 |
| | |||||
* | bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵ | Jeroen Demeyer | 2019-05-30 | 1 | -2/+2 |
| | | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async | ||||
* | bpo-33029: Fix signatures of getter and setter functions. (GH-10746) | Serhiy Storchaka | 2018-11-27 | 1 | -1/+1 |
| | | | Fix also return type for few other functions (clear, releasebuffer). | ||||
* | bpo-33012: Fix signatures of METH_NOARGS funstions. (GH-10736) | Serhiy Storchaka | 2018-11-27 | 1 | -6/+6 |
| | |||||
* | bpo-31680: Add curses.ncurses_version. (GH-4217) | Serhiy Storchaka | 2018-10-30 | 1 | -0/+77 |
| | | | | Use curses.ncurses_version for conditionally skipping a test. | ||||
* | suppress compiler warnings in _cursesmodule.c (#7860) | Xiang Zhang | 2018-06-23 | 1 | -4/+4 |
| | |||||
* | bpo-20171: Convert the _curses and _curses_panel modules to Argument Clinic. ↵ | Serhiy Storchaka | 2018-05-10 | 1 | -1184/+2238 |
| | | | | (GH-4251) | ||||
* | correct the typos (#4950) | Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) | 2017-12-20 | 1 | -2/+2 |
| | |||||
* | Add the const qualifier to "char *" variables that refer to literal strings. ↵ | Serhiy Storchaka | 2017-11-11 | 1 | -2/+2 |
| | | | | (#4370) | ||||
* | bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse(). ↵ | Serhiy Storchaka | 2017-11-01 | 1 | -12/+26 |
| | | | | (#4220) | ||||
* | bpo-15037: Add a workaround for getkey() in curses for ncurses 5.7 and ↵ | Serhiy Storchaka | 2017-11-01 | 1 | -2/+10 |
| | | | | | | earlier. (#3826) Skip a test for unget_wch()/get_wch() on OpenBSD since they are broken in ncurses 5.7. | ||||
* | bpo-31919: Fix building the curses module on OpenIndiana. (#4211) | Serhiy Storchaka | 2017-11-01 | 1 | -2/+4 |
| | |||||
* | bpo-25720: Fix the method for checking pad state of curses WINDOW (#4164) | Masayuki Yamamoto | 2017-11-01 | 1 | -8/+16 |
| | | | | | | | | | Modify the code to use ncurses is_pad() instead of checking WINDOW _flags field. If your platform does not provide the is_pad(), the existing way that checks the field will be enabled. Note: This change does not drop support for platforms where do not have both WINDOW _flags field and is_pad(). | ||||
* | bpo-31891: Fix building the curses module on NetBSD. (#4165) | Serhiy Storchaka | 2017-10-31 | 1 | -33/+40 |
| | |||||
* | [security] bpo-13617: Reject embedded null characters in wchar* strings. (#2302) | Serhiy Storchaka | 2017-06-28 | 1 | -0/+10 |
| | | | | | | | Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters. | ||||
* | bpo-30176: Add missing curses cell attributes constants (GH-1302) | Xiang Zhang | 2017-06-15 | 1 | -3/+5 |
| | |||||
* | bpo-30101: Add support for curses.A_ITALIC. (#1015) | Eijebong | 2017-04-26 | 1 | -0/+3 |
| | |||||
* | Use NULL rather than 0. (#778) | Serhiy Storchaka | 2017-03-23 | 1 | -1/+1 |
| | | | | | There was few cases of using literal 0 instead of NULL in the context of pointers. While this was a legitimate C code, using NULL rather than 0 makes the code clearer. | ||||
* | bpo-29176 Use tmpfile() in curses module (#235) | Christian Heimes | 2017-03-02 | 1 | -37/+15 |
| | | | | | | | | | | | The curses module used mkstemp() + fopen() to create a temporary file in /tmp. The /tmp directory does not exist on Android. The tmpfile() function simplifies the task a lot. It creates a temporary file in a correct directory, takes care of cleanup and returns FILE*. tmpfile is supported on all platforms (C89, POSIX 2001, Android, Windows). Signed-off-by: Christian Heimes <christian@python.org> | ||||
* | bpo-29176: Fix name of the _curses.window class (#52) | Victor Stinner | 2017-02-12 | 1 | -1/+1 |
| | | | | Set name to "_curses.window" instead of "_curses.curses window" (with a space!?). | ||||
* | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever | Serhiy Storchaka | 2017-01-23 | 1 | -40/+22 |
| | | | | possible. Patch is writen with Coccinelle. | ||||
* | Initialize variables to fix compiler warnings | Victor Stinner | 2016-12-09 | 1 | -1/+1 |
| | | | | | Warnings seen on the "AMD64 Debian PGO 3.x" buildbot. Warnings are false positive, but variable initialization should not harm performances. | ||||
* | Issue #28549: Fixed segfault in curses's addch() with ncurses6. | Serhiy Storchaka | 2016-10-30 | 1 | -8/+9 |
|\ | |||||
| * | Issue #28549: Fixed segfault in curses's addch() with ncurses6. | Serhiy Storchaka | 2016-10-30 | 1 | -8/+9 |
| | | |||||
* | | Issue #28526: Use PyUnicode_AsEncodedString() instead of | Serhiy Storchaka | 2016-10-27 | 1 | -2/+2 |
|\ \ | |/ | | | | | | | PyUnicode_AsEncodedObject() in _curese to ensure that the result is a bytes object. | ||||
| * | Issue #28526: Use PyUnicode_AsEncodedString() instead of | Serhiy Storchaka | 2016-10-27 | 1 | -2/+2 |
| | | | | | | | | | | PyUnicode_AsEncodedObject() in _curese to ensure that the result is a bytes object. | ||||
* | | Avoid calling functions with an empty string as format string | Victor Stinner | 2016-09-05 | 1 | -1/+1 |
|/ | | | | Directly pass NULL rather than an empty string. | ||||
* | merge 3.4 | Benjamin Peterson | 2016-08-15 | 1 | -0/+8 |
|\ | |||||
| * | fail when negative values are passed to instr() | Benjamin Peterson | 2016-08-15 | 1 | -0/+8 |
| | | |||||
* | | merge 3.4 | Benjamin Peterson | 2016-08-13 | 1 | -0/+8 |
|\ \ | |/ |