diff -r c0b2dacef35c Modules/readline.c --- a/Modules/readline.c Tue Feb 17 10:19:07 2015 +0200 +++ b/Modules/readline.c Tue Feb 17 21:00:27 2015 +0100 @@ -771,6 +771,18 @@ contents of the line buffer."); +static PyObject * +forced_update_display(PyObject *self, PyObject *noarg) +{ + rl_forced_update_display(); + Py_RETURN_NONE; +} + +PyDoc_STRVAR(doc_forced_update_display, +"forced_update_display() -> None\n\ +Force the update of the display."); + + /* Table of functions exported by the module */ static struct PyMethodDef readline_methods[] = @@ -779,6 +791,8 @@ {"get_line_buffer", get_line_buffer, METH_NOARGS, doc_get_line_buffer}, {"insert_text", insert_text, METH_VARARGS, doc_insert_text}, {"redisplay", redisplay, METH_NOARGS, doc_redisplay}, + {"forced_update_display", forced_update_display, + METH_NOARGS, doc_forced_update_display}, {"read_init_file", read_init_file, METH_VARARGS, doc_read_init_file}, {"read_history_file", read_history_file, METH_VARARGS, doc_read_history_file},