-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: 8604017cbfcc8cf93d21f7edbd9bf27382027050:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit 8604017cbfcc8cf93d21f7edbd9bf27382027050
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Fri Nov 25 09:00:40 2011 +0000

    Encode 8-bit meta in function key sequences _after_ encoding shift/control modifiers.

    Before, when 8-bit meta was on, shift/control modifiers were not encoded
    because, after setting the 8th bit of the last character, the sequence
    was no longer recognized as ending with '~'.

diff --git a/src/command.C b/src/command.C

index 3217ced7516d2ca042073a0b33c5aedd7ec4d3e1..

index ..bef73626ba19219dc5ac0515ee8c0c82867f4de8 100644

--- a/src/command.C
+++ b/src/command.C
@@ -780,14 +780,6 @@ rxvt_term::key_press (XKeyEvent &ev)

           if (len > 0)
             {
-              /*
-               * Pass meta for all function keys, if 'meta' option set
-               */
-#ifdef META8_OPTION
-              if (meta && (meta_char == 0x80))
-                kbuf[len - 1] |= 0x80;
-#endif
-
               /*
                * pass Shift/Control indicators for function keys ending with `~'
                *
@@ -799,6 +791,14 @@ rxvt_term::key_press (XKeyEvent &ev)
                */
               if (kbuf[0] == C0_ESC && kbuf[1] == '[' && kbuf[len - 1] == '~')
                 kbuf[len - 1] = (shft ? (ctrl ? '@' : '$') : (ctrl ? '^' : '~'));
+
+              /*
+               * Pass meta for all function keys, if 'meta' option set
+               */
+#ifdef META8_OPTION
+              if (meta && (meta_char == 0x80))
+                kbuf[len - 1] |= 0x80;
+#endif
             }

         }

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 10:09:31 2024