caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Martin DeMello <martindemello@gmail.com>
To: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: [Caml-list] ledit not handling home/end sequences properly
Date: Wed, 2 Oct 2013 01:20:02 -0700	[thread overview]
Message-ID: <CAFrFfuFPh8x3t0M2YTLSbpp5Q0_Tnx48pLCk8F=Qd8TMQ=2Y4A@mail.gmail.com> (raw)

Want to check before sending the patch in - can anyone reproduce this
issue, or is it some peculiarity of my setup?

I needed to add the following patch to ledit-2.0.3 to get home/end
handled properly on terminals other than xterm:

diff -r ledit-2.03/ledit.ml ledit-mine/ledit.ml
446c446,453
<      ("\\e[OH", Beginning_of_line) ::
---
>      ("\\e[OH", Beginning_of_line);
>      (* gnome-terminal *)
>      ("\\eOH", Beginning_of_line); (* Home *)
>      ("\\eOF", End_of_line); (* End *)
>      (* rxvt *)
>      ("\\e[7~", Beginning_of_line); (* Home *)
>      ("\\e[8~", End_of_line) (* End *)
>      ::

martin

             reply	other threads:[~2013-10-02  8:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-02  8:20 Martin DeMello [this message]
2013-10-02  8:39 ` Sébastien Dailly
2013-10-02  8:48 ` Daniel de Rauglaudre
2013-10-02 19:51   ` Martin DeMello
2013-10-08  9:41     ` Daniel de Rauglaudre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFrFfuFPh8x3t0M2YTLSbpp5Q0_Tnx48pLCk8F=Qd8TMQ=2Y4A@mail.gmail.com' \
    --to=martindemello@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).