From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 2AF98BC48 for ; Fri, 1 Apr 2005 00:19:57 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j2VMJu0r009925 for ; Fri, 1 Apr 2005 00:19:56 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA15820 for ; Fri, 1 Apr 2005 00:19:56 +0200 (MET DST) Received: from ux9.sp.cs.cmu.edu (UX9.SP.CS.CMU.EDU [128.2.220.166]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id j2VMJtDD016153 for ; Fri, 1 Apr 2005 00:19:56 +0200 Received: from c-24-3-154-200.client.comcast.net ([24.3.154.200]) by ux9.sp.cs.cmu.edu id aa03968; 31 Mar 2005 17:19 EST Received: from ecc by stratocaster.home with local (Exim 4.50) id 1DH80S-0004Qa-92 for caml-list@inria.fr; Thu, 31 Mar 2005 17:19:16 -0500 Date: Thu, 31 Mar 2005 17:19:16 -0500 To: caml-list@inria.fr Subject: Re: [Caml-list] colorized output of ocaml interactive shell Message-ID: <20050331221916.GA17009@localhost> Mail-Followup-To: caml-list@inria.fr References: <87d5tf5xtf.fsf@linux-france.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040907i From: Eric Cooper X-Miltered: at nez-perce with ID 424C778C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 424C778B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 ocaml:01 vim:01 syntax:01 vim:01 emacs:01 colorizing:01 wrote:01 wrote:01 macros:01 output:02 output:02 types:02 shell:04 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: On Thu, Mar 31, 2005 at 04:38:57PM -0500, Igor Pechtchanski wrote: > On Thu, 31 Mar 2005, David MENTRE wrote: > > > Hello, > > > > I will do a presentation on OCaml soon. I would like to show some > > example of interactive sessions in the OCaml interactive environment, > > ocaml launched in an XTerm. Does anybody know a program/shell > > script/whatever that can produce a nice colorized output (e.g. types)? > > Any advice? > > You could try using the VIm syntax highlighting mode. You can pipe text > into VIm -- see $VIM/macros/less.sh. Or you can run an OCaml subshell in Emacs, and get its colorizing. -- Eric Cooper e c c @ c m u . e d u