Re: Insert on cons25

"Paul B. Mahol" <[email protected]> Sat, 31 May 2008 15:54:04 +0200
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
Interesting, but first give me commit power to elinks git :)

I dont care what you will do with that patch, my name or mail address,
but to put it simple dont use it for evil purposes ...

On 5/31/08, Kalle Olavi Niemitalo <[email protected]> wrote:
> "Paul B. Mahol" <[email protected]> writes on elinks-users:
>
>> Summary: The Insert key doesnt work on cons25 (FreeBSD console) - at
>> least it doesnt work for me ....
>
> Thank you for the patch.  I would like to push the following
> commit to elinks-0.12 and a similar one to elinks-0.11.  May we
> permanently publish your name and email address in this manner?
> The cia.vc and ohloh.com services are aggregating such data and
> others might do so in the future.
>
> commit b03ddccf086c12e796b8268190835e4f1cbd9a44
> Author:     Paul B. Mahol <[email protected]>
> AuthorDate: Thu May 29 23:19:16 2008 +0200
> Commit:     Kalle Olavi Niemitalo <[email protected]>
> CommitDate: Sat May 31 13:04:25 2008 +0300
>
>     Recognize Insert key on cons25 (FreeBSD console)
>
> diff --git a/AUTHORS b/AUTHORS
> index 21ebb4a..0ca2ce9 100644
> --- a/AUTHORS
> +++ b/AUTHORS
> @@ -433,6 +433,9 @@ Omar Khayam <[email protected]>
>  <[email protected]>
>  	Fix stdin reading on Mac OS X
>
> +Paul B. Mahol <[email protected]>
> +	Recognize Insert key on cons25 (FreeBSD console)
> +
>  Pavol Babincak <[email protected]>
>  	Improved UTF-8 support with double-width chars
>
> diff --git a/src/terminal/kbd.c b/src/terminal/kbd.c
> index f37a9cf..d9ffde7 100644
> --- a/src/terminal/kbd.c
> +++ b/src/terminal/kbd.c
> @@ -807,6 +807,7 @@ decode_terminal_escape_sequence(struct itrm *itrm,
> struct interlink_event *ev)
>  	case 'H': kbd.key = KBD_HOME; break;	/*    CUP  khome    cons25 */
>  	case 'I': kbd.key = KBD_PAGE_UP; break; /*   (CHT) kpp      cons25 */
>  	case 'G': kbd.key = KBD_PAGE_DOWN; break; /* (CHA) knp      cons25 */
> +	case 'L': kbd.key = KBD_INS; break;	/*   (IL)  kich1    cons25 */
>  /* Free BSD (TERM=cons25 etc.) */
>  /*	case 'M': kbd.key = KBD_F1; break;*/	/*   (DL)  kf1      cons25 */
>  	case 'N': kbd.key = KBD_F2; break;	/*   (EF)  kf2      cons25 */
>