Add iso14755 option to disable ISO 14755 at runtime.
authorsf-exg <sf-exg>
Wed, 6 Jan 2010 12:10:44 +0000 (12:10 +0000)
committersf-exg <sf-exg>
Wed, 6 Jan 2010 12:10:44 +0000 (12:10 +0000)
Changes
doc/rxvt.1.pod
src/command.C
src/init.C
src/optinc.h
src/rsinc.h
src/xdefaults.C

diff --git a/Changes b/Changes
index e0f04e3..3c7f541 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,7 @@
 rxvt-unicode changelog <= google-friendly title
 
 rxvt-unicode changelog <= google-friendly title
 
+       - new iso14755 option to disable ISO 14755 at runtime (Emanuele Giaquinta).
+
 9.07 Wed Dec 30 07:07:18 CET 2009
        - port to glibc-2.10 changes (strchr etc. returning const char *
           in C++), based on patches by Milos Jakubicek and Oliver Mader.
 9.07 Wed Dec 30 07:07:18 CET 2009
        - port to glibc-2.10 changes (strchr etc. returning const char *
           in C++), based on patches by Milos Jakubicek and Oliver Mader.
index 871251e..81fd8dc 100644 (file)
@@ -1298,6 +1298,10 @@ Compile I<frills>: Sets the WM_TRANSIENT_FOR property to the given window id.
 Compile I<frills>: Sets override-redirect for the terminal window, making
 it almost invisible to window managers; option B<-override-redirect>.
 
 Compile I<frills>: Sets override-redirect for the terminal window, making
 it almost invisible to window managers; option B<-override-redirect>.
 
+=item B<iso14755:> I<boolean>
+
+Turn on/off ISO 14755 (default enabled).
+
 =item B<iso14755_52:> I<boolean>
 
 Turn on/off ISO 14755 5.2 mode (default enabled).
 =item B<iso14755_52:> I<boolean>
 
 Turn on/off ISO 14755 5.2 mode (default enabled).
index 84efe3b..e9c2a16 100644 (file)
@@ -621,8 +621,9 @@ rxvt_term::key_press (XKeyEvent &ev)
               iso14755buf = 0;
             }
         }
               iso14755buf = 0;
             }
         }
-      else if ((ctrl && (keysym == XK_Shift_L || keysym == XK_Shift_R))
-               || (shft && (keysym == XK_Control_L || keysym == XK_Control_R)))
+      else if (option (Opt_iso14755) &&
+               ((ctrl && (keysym == XK_Shift_L || keysym == XK_Shift_R))
+                || (shft && (keysym == XK_Control_L || keysym == XK_Control_R))))
         if (!(iso14755buf & ISO_14755_STARTED))
           {
             iso14755buf |= ISO_14755_STARTED;
         if (!(iso14755buf & ISO_14755_STARTED))
           {
             iso14755buf |= ISO_14755_STARTED;
index a352236..9af7bae 100644 (file)
@@ -310,6 +310,7 @@ rxvt_term::init_vars ()
   set_option (Opt_secondaryScroll);
   set_option (Opt_pastableTabs);
   set_option (Opt_intensityStyles);
   set_option (Opt_secondaryScroll);
   set_option (Opt_pastableTabs);
   set_option (Opt_intensityStyles);
+  set_option (Opt_iso14755);
   set_option (Opt_iso14755_52);
   set_option (Opt_buffered);
 }
   set_option (Opt_iso14755_52);
   set_option (Opt_buffered);
 }
index 4492d82..ee046cc 100644 (file)
  nodef(intensityStyles)
 #endif
 #if ISO_14755
  nodef(intensityStyles)
 #endif
 #if ISO_14755
+ def(iso14755,             35)
  def(iso14755_52,          32)
 #else
  def(iso14755_52,          32)
 #else
+ nodef(iso14755)
  nodef(iso14755_52)
 #endif
  def(console,              33)
  nodef(iso14755_52)
 #endif
  def(console,              33)
index 0667bf8..fa56424 100644 (file)
   def (perl_lib)
 #endif
 #if ISO_14755
   def (perl_lib)
 #endif
 #if ISO_14755
+  def (iso14755)
   def (iso14755_52)
 #endif
 #ifdef HAVE_AFTERIMAGE
   def (iso14755_52)
 #endif
 #ifdef HAVE_AFTERIMAGE
index 4717dd4..7188498 100644 (file)
@@ -260,6 +260,7 @@ optList[] = {
               STRG (Rs_perl_ext_2, "perl-ext", "pe", "string", "colon-separated list of perl extensions to enable for this instance"),
 #endif
 #if ISO_14755
               STRG (Rs_perl_ext_2, "perl-ext", "pe", "string", "colon-separated list of perl extensions to enable for this instance"),
 #endif
 #if ISO_14755
+              BOOL (Rs_iso14755, "iso14755", NULL, Opt_iso14755, 0, NULL),
               BOOL (Rs_iso14755_52, "iso14755_52", NULL, Opt_iso14755_52, 0, NULL),
 #endif
 #ifdef HAVE_AFTERIMAGE
               BOOL (Rs_iso14755_52, "iso14755_52", NULL, Opt_iso14755_52, 0, NULL),
 #endif
 #ifdef HAVE_AFTERIMAGE