Version française
Home     About     Download     Resources     Contact us    
Browse thread
colorized output of ocaml interactive shell
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Igor Pechtchanski <pechtcha@c...>
Subject: Re: [Caml-list] colorized output of ocaml interactive shell
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.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT