mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Issue #4254: Adds _curses.update_lines_cols() Patch by Arnon Yaari
This commit is contained in:
parent
9abe04975a
commit
d2bc389e55
5 changed files with 31 additions and 0 deletions
|
@ -2866,6 +2866,13 @@ update_lines_cols(void)
|
|||
Py_DECREF(m);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
PyCurses_update_lines_cols(PyObject *self)
|
||||
{
|
||||
return PyLong_FromLong((long) update_lines_cols());
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CURSES_RESIZETERM
|
||||
|
@ -3268,6 +3275,9 @@ static PyMethodDef PyCurses_methods[] = {
|
|||
{"typeahead", (PyCFunction)PyCurses_TypeAhead, METH_VARARGS},
|
||||
{"unctrl", (PyCFunction)PyCurses_UnCtrl, METH_VARARGS},
|
||||
{"ungetch", (PyCFunction)PyCurses_UngetCh, METH_VARARGS},
|
||||
#if defined(HAVE_CURSES_RESIZETERM) || defined(HAVE_CURSES_RESIZE_TERM)
|
||||
{"update_lines_cols", (PyCFunction)PyCurses_update_lines_cols, METH_NOARGS},
|
||||
#endif
|
||||
#ifdef HAVE_NCURSESW
|
||||
{"unget_wch", (PyCFunction)PyCurses_Unget_Wch, METH_VARARGS},
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue