On Mon, Dec 18 2017, Anton Lindqvist <[email protected]> wrote:
> On Sat, Dec 16, 2017 at 01:58:49PM +0200, Lari Rasku wrote:
>> Tested with vt220 and wsvt25.  Hopefully we're close to exhausting
>> all the different ways to encode these keys by now.
>> 
>> diff --git bin/ksh/emacs.c bin/ksh/emacs.c
>> index 07bfbd914..4291ce656 100644
>> --- bin/ksh/emacs.c
>> +++ bin/ksh/emacs.c
>> @@ -1536,6 +1536,8 @@ x_init_emacs(void)
>>      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 */
>> +    kb_add(x_mv_begin,              NULL, CTRL('['), '[', '7', '~', 0); /* 
>> home */
>> +    kb_add(x_mv_end,                NULL, CTRL('['), '[', '8', '~', 0); /* 
>> end */
>>  
>>      /* can't be bound */
>>      kb_add(x_set_arg,               NULL, CTRL('['), '0', 0);
>> 
>
> Looks correct to me, judging by:
>
>   $ for f in /usr/share/terminfo/*/*; do infocmp -1 ${f##*/} | grep khome | 
> grep '\[7~'; done
>   $ for f in /usr/share/terminfo/*/*; do infocmp -1 ${f##*/} | grep kend | 
> grep '\[8~'; done
>
> Any other willing to ok?

Looks fine, ok jca@

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to