degesch: fix 8-bit input
This commit is contained in:
parent
1ff56bfe5a
commit
507d444e0d
|
@ -2245,10 +2245,15 @@ on_readline_return (int count, int key)
|
||||||
static void
|
static void
|
||||||
app_readline_bind_meta (char key, rl_command_func_t cb)
|
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 };
|
char keyseq[] = { '\\', 'e', key, 0 };
|
||||||
rl_bind_key (META (key), cb);
|
|
||||||
rl_bind_keyseq (keyseq, 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
|
static int
|
||||||
|
|
Loading…
Reference in New Issue