From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 04D2B7EE4B for ; Wed, 2 Oct 2013 10:48:33 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.90,1017,1371074400"; d="scan'208";a="35214533" Received: from yquem.inria.fr ([128.93.8.37]) by mail2-relais-roc.national.inria.fr with ESMTP; 02 Oct 2013 10:48:31 +0200 Received: by yquem.inria.fr (Postfix, from userid 25991) id E8A83E19B2; Wed, 2 Oct 2013 10:48:08 +0200 (CEST) Date: Wed, 2 Oct 2013 10:48:08 +0200 From: Daniel de Rauglaudre To: "caml-list@inria.fr" Message-ID: <20131002084808.GA19450@yquem.inria.fr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [Caml-list] ledit not handling home/end sequences properly Hi, Added for version 2.04. Thank you. On Wed, Oct 02, 2013 at 10:20:15AM +0200, Martin DeMello wrote: > 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 > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs -- Daniel de Rauglaudre http://pauillac.inria.fr/~ddr/