]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tinfo/init_keytry.c
ncurses 5.7 - patch 20090411
[ncurses.git] / ncurses / tinfo / init_keytry.c
index d30d3ed16a876d3de2bcb0913fb4fedd42141da6..2f6fe4f6fad791972a16f5f79669b6162b3ad085 100644 (file)
@@ -36,7 +36,7 @@
 
 #include <term_entry.h>
 
-MODULE_ID("$Id: init_keytry.c,v 1.11 2008/05/03 23:09:15 tom Exp $")
+MODULE_ID("$Id: init_keytry.c,v 1.12 2008/05/24 21:44:51 tom Exp $")
 
 /*
 **      _nc_init_keytry()
@@ -45,6 +45,13 @@ MODULE_ID("$Id: init_keytry.c,v 1.11 2008/05/03 23:09:15 tom Exp $")
 **
 */
 
+/*
+ * Internal entrypoints use SCREEN* parameter to obtain capabilities rather
+ * than cur_term.
+ */
+#undef CUR
+#define CUR (sp->_term)->type.
+
 #if    BROKEN_LINKER
 #undef _nc_tinfo_fkeys
 #endif