mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
#1940: make it possible to use curses.filter() before curses.initscr()
as the documentation says. (backport from rev. 60322)
This commit is contained in:
parent
6bf585e753
commit
ee50e3c734
2 changed files with 13 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue