From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id CA359BC0B for ; Sun, 19 Nov 2006 22:47:33 +0100 (CET) Received: from smtp-msa-out03.orange.fr (smtp3.orange.fr [193.252.22.28]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kAJLlXZb002681 for ; Sun, 19 Nov 2006 22:47:33 +0100 Received: from [192.168.0.3] (AGrenoble-152-1-7-192.w82-122.abo.wanadoo.fr [82.122.6.192]) by mwinf0302.orange.fr (SMTP Server) with ESMTP id DC3571C00B20; Sun, 19 Nov 2006 22:47:32 +0100 (CET) X-ME-UUID: 20061119214732902.DC3571C00B20@mwinf0302.orange.fr Message-ID: <4560D128.7030601@imag.fr> Date: Sun, 19 Nov 2006 22:48:24 +0100 From: michel levy User-Agent: Mozilla Thunderbird 1.0.8-1.1.fc4 (X11/20060501) X-Accept-Language: en-us, en MIME-Version: 1.0 To: David MENTRE Cc: thibaut deslandes , caml-list@inria.fr Subject: Re: [Caml-list] question a propos du terminal References: <28f185a80611191212h7ba71811v9dd9f6a4a65c5933@mail.gmail.com> <87velbqj2u.fsf@linux-france.org> In-Reply-To: <87velbqj2u.fsf@linux-france.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Miltered: at discorde with ID 4560D0F5.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ledit:01 ocaml:01 ledit:01 ocaml:01 amicalement:01 keypresses:01 1.11:98 manda:98 utopia:98 wrote:01 caml-list:01 typing:01 writes:01 michel:01 michel:01 David MENTRE wrote: > [ English summary: use "ledit" command. ] > > Bonjour, > > "thibaut deslandes" writes: > > >>Quand j'écris une commande et que je vais a la ligne, il m'est strictement >>impossible de modifier la ligne précédente. Existe il une solution pour y >>remédier, (a chaque faute d'orthographe dans le paragraphe, je dois >>copier-coller le texte ! ) >>J'ai également installé ocaml mais rien n'y fait > > > Installer le paquet « ledit » et utiliser la commande ledit : > > $ ledit ocaml > > > LEDIT(1) LEDIT(1) > > NAME > ledit - line editor, version 1.11 > > SYNOPSIS > ledit [-h file] [-x] [-l length] [command options] > > DESCRIPTION > The command ledit allows to edit lines one by one when running an > interactive command. When typing a line, some keys with control or meta > are interpreted: it is possible to insert characters in the middle of > the line, go to the beginning or the end of the line, get a previous > line, search for a line with a pattern, etc. > > > Amicalement, > d. Another good solution, rlwrap rlwrap runs the specified command, intercepting user input in order to supply readline’s line editing, persistent history and completion. rlwrap tries to be as transparent as possible, keeping track of com- mand’s terminal settings, so that it can do the right thing when com- mand asks for single keypresses or for a password. Try "rlwrap ocaml" and install first rlwrap , see at http://utopia.knoware.nl/~hlub/uck/rlwrap/ -- Michel Levy 36 rue George Sand 38400 Saint Martin d'Heres