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 C97347ED34 for ; Wed, 4 Jul 2012 23:19:15 +0200 (CEST) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of anthony.tavener@gmail.com) identity=pra; client-ip=74.125.82.52; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="anthony.tavener@gmail.com"; x-sender="anthony.tavener@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of anthony.tavener@gmail.com designates 74.125.82.52 as permitted sender) identity=mailfrom; client-ip=74.125.82.52; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="anthony.tavener@gmail.com"; x-sender="anthony.tavener@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wg0-f52.google.com) identity=helo; client-ip=74.125.82.52; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="anthony.tavener@gmail.com"; x-sender="postmaster@mail-wg0-f52.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AowBADuy9E9KfVI0imdsb2JhbABFpiOICAGIeQgiAQEBCgkNBxIGI4IYAQEBAwESAiwBGxILAQMBCwYFBAcaISIBEQEFAQoSGRIQh1oBAwYFC5sTCQOMI4JxhSYKGScDCleIcQEFDIstgxuDHAOISoxtgRKNFD6EHQ X-IronPort-AV: E=Sophos;i="4.77,525,1336341600"; d="scan'208";a="149657775" Received: from mail-wg0-f52.google.com ([74.125.82.52]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 04 Jul 2012 23:19:15 +0200 Received: by wgbgn7 with SMTP id gn7so7809304wgb.9 for ; Wed, 04 Jul 2012 14:19:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8h0Ze147RZzvMXUA6H7ijkXolLYgECprmyQZehVSw+I=; b=Rbi6jjaae6RaFV7Z6Eo+D09QnVZTEQjbjK/zEWPTggrIE7qR4SmG2k3AV4+89+3J/z 1PIzYxxotSoywFiDF0MVYJ0p6rDulVcblwGSYXNWaYLGZIrQ7oMTFLz8YOZUI8exfgZv dl3Psz79ZxtBBg2nwuUdK42qItw2JZfCzYh/NkkVa9TaUUPlhwmT+hFLKbUYpx+5dDz2 /ucU3OuKeTUXXCGkG5IdNfajRZdPYJorBPFwpTiW7s6DxED9AKGJpSuLTewbebYtPVqz VObV7QYpRx4tBVw7g8DDync1YJtLLhazJ/rLaCBhUo2yX/mYXwf7hQcfhK/oHItyXFI8 9ngw== MIME-Version: 1.0 Received: by 10.216.208.89 with SMTP id p67mr7222919weo.155.1341436751801; Wed, 04 Jul 2012 14:19:11 -0700 (PDT) Received: by 10.223.74.14 with HTTP; Wed, 4 Jul 2012 14:19:11 -0700 (PDT) In-Reply-To: <20120704182415.GB7341@yeeloong> References: <20120704182415.GB7341@yeeloong> Date: Wed, 4 Jul 2012 15:19:11 -0600 Message-ID: From: Anthony Tavener To: rixed@happyleptic.org Cc: OCaml List Content-Type: multipart/alternative; boundary=001636c59881146d1d04c407956b Subject: Re: [Caml-list] ocaml top-level line editing script --001636c59881146d1d04c407956b Content-Type: text/plain; charset=ISO-8859-1 Oh geez... I've only been using: alias ocaml='rlwrap ocaml'. I didn't RTFM on rlwrap. A colored prompt helps, and multi-line edit! Thanks! I'll leave -rectypes as a default for crazy people though. ;) On Wed, Jul 4, 2012 at 12:24 PM, wrote: > 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 :-) > > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa-roc.inria.fr/wws/info/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > > --001636c59881146d1d04c407956b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Oh geez... I've only been using: alias ocaml=3D'rlwrap ocaml'. = I didn't RTFM on rlwrap.

A colored prompt helps, and= multi-line edit! Thanks! I'll leave -rectypes as a default for crazy p= eople though. ;)


On Wed, Jul 4, 2012 at 1= 2:24 PM, <rixed@happyleptic.org> wrote:
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=3D'rlwrap --prompt-colour=3Dgreen --multi-line --remember -= -complete-filenames --command-name=3Docaml ocaml -rectypes'

And this in my .inputrc:

$if ocaml
=A0 =A0 "\C-o": "()\C-b"
=A0 =A0 "\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 s= hare :-)


--
Caml-list mailing list. =A0Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


--001636c59881146d1d04c407956b--