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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 8F29F7ED34 for ; Wed, 4 Jul 2012 20:29:00 +0200 (CEST) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of rixed@happyleptic.org) identity=pra; client-ip=212.27.42.5; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="rixed@happyleptic.org"; x-sender="rixed@happyleptic.org"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of rixed@happyleptic.org) identity=mailfrom; client-ip=212.27.42.5; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="rixed@happyleptic.org"; x-sender="rixed@happyleptic.org"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@smtp5-g21.free.fr) identity=helo; client-ip=212.27.42.5; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="rixed@happyleptic.org"; x-sender="postmaster@smtp5-g21.free.fr"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApcCAFKK9E/UGyoFlGdsb2JhbABFty0iAQEBAQkLCQkUAySCGQEFOk8LRhRJiCK6QpEQYAOVNoVmjH8 X-IronPort-AV: E=Sophos;i="4.77,524,1336341600"; d="scan'208";a="149647580" Received: from smtp5-g21.free.fr ([212.27.42.5]) by mail4-smtp-sop.national.inria.fr with ESMTP; 04 Jul 2012 20:28:59 +0200 Received: from yeeloong (unknown [82.67.194.89]) by smtp5-g21.free.fr (Postfix) with SMTP id 8EC7FD48052 for ; Wed, 4 Jul 2012 20:28:54 +0200 (CEST) Received: by yeeloong (sSMTP sendmail emulation); Wed, 04 Jul 2012 20:24:16 +0200 Date: Wed, 4 Jul 2012 20:24:15 +0200 From: rixed@happyleptic.org To: OCaml List Message-ID: <20120704182415.GB7341@yeeloong> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [Caml-list] ocaml top-level line editing script Interresting, although rlwrap gives you history, filename completion, prompt coloring, syntax completion, brackets matching, use of an external editor and easy configuration via .inputrc. For instance I have this in my .zshrc: alias ocaml='rlwrap --prompt-colour=green --multi-line --remember --complete-filenames --command-name=ocaml ocaml -rectypes' And this in my .inputrc: $if ocaml "\C-o": "()\C-b" "\C-n": ";;\n" $endif While the default C-^ launches vi (for multi-line edits) I'm confident others have much more gorgeous inputrcs, though. Please share :-)