Ok, here we go...

New feature in feature.h: DISABLE_APP_KEYPAD_MODE: ignores application
keypad mode escape sequences and NumLock.  You can still get the
sequences by holding Shift down.

(IMnsHO the sole purpose of app keypad mode is to break programs.)

Marius Gedminas
-- 
Any sufficiently advanced Operating System is indistinguishable from Linux.
                -- Jim Dennis
Index: src/feature.h
===================================================================
RCS file: /cvsroot/rxvt/rxvt/src/feature.h,v
retrieving revision 1.52
diff -u -r1.52 feature.h
--- src/feature.h       2001/03/02 05:33:15     1.52
+++ src/feature.h       2001/03/06 12:54:18
@@ -210,6 +218,11 @@
  */
 #define PAGING_CONTEXT_LINES 1 /* */
 
+/*
+ * Ignore application keypad mode              -- mg
+ */
+/* #define DISABLE_APP_KEYPAD_MODE */
+
 /*--------------------------------MOUSE---------------------------------*/
 /*
  * Disable sending escape sequences (up, down, page up/down)
Index: src/rxvt.h
===================================================================
RCS file: /cvsroot/rxvt/rxvt/src/rxvt.h,v
retrieving revision 1.122
diff -u -r1.122 rxvt.h
--- src/rxvt.h  2001/03/06 05:04:28     1.122
+++ src/rxvt.h  2001/03/06 12:54:23
@@ -690,7 +690,11 @@
 #define PrivMode_Screen                (1LU<<4)
 #define PrivMode_Autowrap      (1LU<<5)
 #define PrivMode_aplCUR                (1LU<<6)
-#define PrivMode_aplKP         (1LU<<7)
+#ifdef DISABLE_APP_KEYPAD_MODE
+# define PrivMode_aplKP                0
+#else
+# define PrivMode_aplKP                (1LU<<7)
+#endif
 #define PrivMode_HaveBackSpace (1LU<<8)
 #define PrivMode_BackSpace     (1LU<<9)
 #define PrivMode_ShiftKeys     (1LU<<10)

Reply via email to