* colorized output of ocaml interactive shell @ 2005-03-31 21:07 David MENTRE 2005-03-31 21:38 ` [Caml-list] " Igor Pechtchanski 2005-04-04 14:44 ` Olivier Grisel 0 siblings, 2 replies; 5+ messages in thread From: David MENTRE @ 2005-03-31 21:07 UTC (permalink / raw) To: caml-list 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? Yours, d. PS : My system : Debian GNU/Linux -- pub 1024D/A3AD7A2A 2004-10-03 David MENTRE <dmentre@linux-france.org> 5996 CC46 4612 9CA4 3562 D7AC 6C67 9E96 A3AD 7A2A ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] colorized output of ocaml interactive shell 2005-03-31 21:07 colorized output of ocaml interactive shell David MENTRE @ 2005-03-31 21:38 ` Igor Pechtchanski 2005-03-31 22:19 ` Eric Cooper 2005-04-04 14:44 ` Olivier Grisel 1 sibling, 1 reply; 5+ messages in thread From: Igor Pechtchanski @ 2005-03-31 21:38 UTC (permalink / raw) To: David MENTRE; +Cc: caml-list 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] colorized output of ocaml interactive shell 2005-03-31 21:38 ` [Caml-list] " Igor Pechtchanski @ 2005-03-31 22:19 ` Eric Cooper 2005-03-31 22:36 ` Titus Brown 0 siblings, 1 reply; 5+ messages in thread From: Eric Cooper @ 2005-03-31 22:19 UTC (permalink / raw) To: caml-list 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] colorized output of ocaml interactive shell 2005-03-31 22:19 ` Eric Cooper @ 2005-03-31 22:36 ` Titus Brown 0 siblings, 0 replies; 5+ messages in thread From: Titus Brown @ 2005-03-31 22:36 UTC (permalink / raw) To: caml-list -> > > 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. Or... http://www.gnu.org/software/src-highlite/source-highlight.html It only has a CAML mode, but that should be sufficient, no? --titus ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] colorized output of ocaml interactive shell 2005-03-31 21:07 colorized output of ocaml interactive shell David MENTRE 2005-03-31 21:38 ` [Caml-list] " Igor Pechtchanski @ 2005-04-04 14:44 ` Olivier Grisel 1 sibling, 0 replies; 5+ messages in thread From: Olivier Grisel @ 2005-04-04 14:44 UTC (permalink / raw) To: David MENTRE; +Cc: caml-list 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? > What would be really neat would be an equivalent of the excellent ipython interactive shell for ocaml. http://ipython.scipy.org/ But maybe the ocaml top level lacks python introspection capabilities ... Best, Olivier ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-04-04 14:44 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-03-31 21:07 colorized output of ocaml interactive shell David MENTRE 2005-03-31 21:38 ` [Caml-list] " Igor Pechtchanski 2005-03-31 22:19 ` Eric Cooper 2005-03-31 22:36 ` Titus Brown 2005-04-04 14:44 ` Olivier Grisel
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox