aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-04-28 18:15:53 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-04-28 23:40:49 +0200
commit507d444e0d6f16f3d0f6fd0af3476b671db2e9cc (patch)
treeb292505bdca9be361ac7ad9f3b3252249af35880
parent1ff56bfe5a521a148e58bb64c89de9f1e0b01a25 (diff)
downloadxK-507d444e0d6f16f3d0f6fd0af3476b671db2e9cc.tar.gz
xK-507d444e0d6f16f3d0f6fd0af3476b671db2e9cc.tar.xz
xK-507d444e0d6f16f3d0f6fd0af3476b671db2e9cc.zip
degesch: fix 8-bit input
-rw-r--r--degesch.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/degesch.c b/degesch.c
index 19bdcfb..d240969 100644
--- a/degesch.c
+++ b/degesch.c
@@ -2245,10 +2245,15 @@ on_readline_return (int count, int key)
static void
app_readline_bind_meta (char key, rl_command_func_t cb)
{
- // One of these is going to work
+ // This one seems to actually work
char keyseq[] = { '\\', 'e', key, 0 };
- rl_bind_key (META (key), cb);
rl_bind_keyseq (keyseq, cb);
+#if 0
+ // While this one only fucks up UTF-8
+ // Tested with urxvt and xterm, on Debian Jessie/Arch, default settings
+ // \M-<key> behaves exactly the same
+ rl_bind_key (META (key), cb);
+#endif
}
static int