Generate the clear() method manually (calling __GLclear(), another
name for clear()). This fixes the name clash with curses.
(Jack)
diff --git a/Modules/cstubs b/Modules/cstubs
index 1a237c1..bd2af58 100644
--- a/Modules/cstubs
+++ b/Modules/cstubs
@@ -886,6 +886,18 @@
}
+/* void clear - Manual because of clash with termcap */
+%clear
+static PyObject *
+gl_clear(self, args)
+ PyObject *self;
+ PyObject *args;
+{
+ __GLclear( );
+ Py_INCREF(Py_None);
+ return Py_None;
+}
+
/* End of manually written stubs */
%%
@@ -898,7 +910,6 @@
void rmv2i long s long s
void noport
void popviewport
-void clear
void clearhitcode
void closeobj
void cursoff