From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL,MISSING_HEADERS autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 9483BBC0A for ; Sat, 13 Jan 2007 21:53:25 +0100 (CET) Received: from amazone2.ujf-grenoble.fr (amazone2.ujf-grenoble.fr [152.77.2.202]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0DKrP2V005503 for ; Sat, 13 Jan 2007 21:53:25 +0100 Received: from tana2.ujf-grenoble.fr (tana2.ujf-grenoble.fr [152.77.24.22]) by amazone2.ujf-grenoble.fr (8.13.7/8.13.7/Configured by JE 21 07 2006) with ESMTP id l0DKrOEI069618 for ; Sat, 13 Jan 2007 21:53:24 +0100 (CET) Received: from localhost (unknown [127.0.0.1]) by tana2.ujf-grenoble.fr (Postfix) with ESMTP id D36EC250438 for ; Sat, 13 Jan 2007 21:53:24 +0100 (CET) X-Virus-Scanned: Scanned on tana2.ujf-grenoble.fr Received: from tana2.ujf-grenoble.fr ([127.0.0.1]) by localhost (tana2.ujf-grenoble.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nO9Eqtv5Plep for ; Sat, 13 Jan 2007 21:53:24 +0100 (CET) Received: from tibre2.ujf-grenoble.fr (tibre2.ujf-grenoble.fr [152.77.24.10]) by tana2.ujf-grenoble.fr (Postfix) with ESMTP id A55D425041C for ; Sat, 13 Jan 2007 21:53:24 +0100 (CET) Received: from ifapp1.ujf-grenoble.fr (mozart.ujf-grenoble.fr [193.54.241.5]) by tibre2.ujf-grenoble.fr (8.13.3/8.13.3) with ESMTP id l0DKrOSP053927 for ; Sat, 13 Jan 2007 21:53:24 +0100 (CET) (envelope-from san.vu-ngoc@ujf-grenoble.fr) Received: from [127.0.0.1] ([::ffff:193.54.241.13]) (TLS: TLSv1/SSLv3,256bits,AES256-SHA) by fourier.ujf-grenoble.fr with esmtp; Sat, 13 Jan 2007 21:53:23 +0100 id 0000F53D.45A946C3.0000594E Message-ID: <45A946BA.5020602@ujf-grenoble.fr> Date: Sat, 13 Jan 2007 21:53:14 +0100 From: Vu Ngoc San User-Agent: IceDove 1.5.0.9 (X11/20061220) MIME-Version: 1.0 Cc: caml-list@inria.fr Subject: Re: [Caml-list] color on linux terminal References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Miltered: at discorde with ID 45A946C5.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; markus:01 ocaml:01 blabla:01 markus:01 beginner's:01 ocaml:01 bug:01 027:98 033:98 033:98 beginners:01 caml-list:01 caml-list:01 bin:01 caml:02 print_string "\027[31m Yes it is red";; Markus Weihs a écrit : > Hi, > > to get coloured output on a linux terminal, you can do something like > > echo -e "\033[31m This is now red" > > How can I do this with OCaml? The following doesn't work > > print_string "\033[31m blabla" > > > Thanks in advance, > > Markus > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > -- --- Vu Ngoc San tel:04 76 63 58 53 Institut Fourier e-mail:San.Vu-Ngoc@ujf-grenoble.fr Universite Grenoble 1, BP 74 http://www-fourier.ujf-grenoble.fr/~svungoc 38402 Saint Martin d'Heres France ---