Kaydet (Commit) ee50e3c7 authored tarafından Georg Brandl's avatar Georg Brandl

#1940: make it possible to use curses.filter() before curses.initscr()

as the documentation says.
 (backport from rev. 60322)
üst 6bf585e7
......@@ -212,6 +212,9 @@ Library
Extension Modules
-----------------
- #1940: make it possible to use curses.filter() before curses.initscr()
as the documentation says.
- Fix a potential 'SystemError: NULL result without error' in _ctypes.
- Prevent a segfault when a ctypes NULL function pointer is called.
......
......@@ -1619,10 +1619,19 @@ NoArgTrueFalseFunction(has_colors)
NoArgTrueFalseFunction(has_ic)
NoArgTrueFalseFunction(has_il)
NoArgTrueFalseFunction(isendwin)
NoArgNoReturnVoidFunction(filter)
NoArgNoReturnVoidFunction(flushinp)
NoArgNoReturnVoidFunction(noqiflush)
static PyObject *
PyCurses_filter(PyObject *self)
{
/* not checking for PyCursesInitialised here since filter() must
be called before initscr() */
filter();
Py_INCREF(Py_None);
return Py_None;
}
static PyObject *
PyCurses_Color_Content(PyObject *self, PyObject *args)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment