In tmux, home and end send different bytes. I don't know why, but I want
things to just work. We already have two different keys here, so what's one
more? (how many can there be...?)


Index: emacs.c
===================================================================
RCS file: /cvs/src/bin/ksh/emacs.c,v
retrieving revision 1.62
diff -u -p -r1.62 emacs.c
--- emacs.c     14 Dec 2015 13:59:42 -0000      1.62
+++ emacs.c     29 Dec 2015 10:41:45 -0000
@@ -1576,6 +1576,8 @@ x_init_emacs(void)
        kb_add(x_mv_end,                NULL, CTRL('['), '[', 'F', 0); /* end */
        kb_add(x_mv_begin,              NULL, CTRL('['), 'O', 'H', 0); /* home 
*/
        kb_add(x_mv_end,                NULL, CTRL('['), 'O', 'F', 0); /* end */
+       kb_add(x_mv_begin,              NULL, CTRL('['), '[', '1', '~', 0); /* 
home */
+       kb_add(x_mv_end,                NULL, CTRL('['), '[', '4', '~', 0); /* 
end */
 
        /* can't be bound */
        kb_add(x_set_arg,               NULL, CTRL('['), '0', 0);

Reply via email to