caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ledit not handling home/end sequences properly
@ 2013-10-02  8:20 Martin DeMello
  2013-10-02  8:39 ` Sébastien Dailly
  2013-10-02  8:48 ` Daniel de Rauglaudre
  0 siblings, 2 replies; 5+ messages in thread
From: Martin DeMello @ 2013-10-02  8:20 UTC (permalink / raw)
  To: caml-list

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-10-08  9:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-02  8:20 [Caml-list] ledit not handling home/end sequences properly Martin DeMello
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

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).