Permalink
Browse files

Interpret ESC BEL (\x01\x07) as "mod4-"

Rxvt-unicode allows you to configure mod4 (or any modifier) to send a
custom prefix. My setup sends ESC-BEL-CHAR for Mod4-CHAR.
  • Loading branch information...
1 parent 2dd44ee commit 8f35a569617a2fa40d7419075be04a15022fa87a @guns committed Jan 29, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/gui/gui-key.c
View
@@ -278,6 +278,11 @@ gui_key_get_internal_code (const char *key)
strcat (result, "\x01[[");
key += 6;
}
+ if (strncmp (key, "mod4-", 5) == 0)
+ {
+ strcat (result, "\x01[\x01G");
+ key += 5;
+ }
if (strncmp (key, "meta-", 5) == 0)
{
strcat (result, "\x01[");
@@ -325,6 +330,11 @@ gui_key_get_expanded_name (const char *key)
strcat (result, "meta2-");
key += 3;
}
+ if (strncmp (key, "\x01[\x01G", 4) == 0)
+ {
+ strcat (result, "mod4-");
+ key += 4;
+ }
if (strncmp (key, "\x01[", 2) == 0)
{
strcat (result, "meta-");

0 comments on commit 8f35a56

Please sign in to comment.