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

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

as the documentation says.
üst 2a7d991c
...@@ -1103,9 +1103,13 @@ Library ...@@ -1103,9 +1103,13 @@ Library
does not claim to support starttls. Adds the SMTP.ehlo_or_helo_if_needed() does not claim to support starttls. Adds the SMTP.ehlo_or_helo_if_needed()
method. Patch contributed by Bill Fenner. method. Patch contributed by Bill Fenner.
Extension Modules Extension Modules
----------------- -----------------
- #1940: make it possible to use curses.filter() before curses.initscr()
as the documentation says.
- Backport of _fileio module from Python 3.0. - Backport of _fileio module from Python 3.0.
- #1087741: mmap.mmap is now a class, not a factory function. It is also - #1087741: mmap.mmap is now a class, not a factory function. It is also
......
...@@ -1677,10 +1677,19 @@ NoArgTrueFalseFunction(has_colors) ...@@ -1677,10 +1677,19 @@ NoArgTrueFalseFunction(has_colors)
NoArgTrueFalseFunction(has_ic) NoArgTrueFalseFunction(has_ic)
NoArgTrueFalseFunction(has_il) NoArgTrueFalseFunction(has_il)
NoArgTrueFalseFunction(isendwin) NoArgTrueFalseFunction(isendwin)
NoArgNoReturnVoidFunction(filter)
NoArgNoReturnVoidFunction(flushinp) NoArgNoReturnVoidFunction(flushinp)
NoArgNoReturnVoidFunction(noqiflush) 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 * static PyObject *
PyCurses_Color_Content(PyObject *self, PyObject *args) 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