Version française
Home     About     Download     Resources     Contact us    
Browse thread
color on linux terminal
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] color on linux terminal
Hi,

On Sat, Jan 13, 2007 at 08:29:16PM +0000, Markus Weihs wrote:

> How can I do this with OCaml? The following doesn't work
>     print_string "\033[31m blabla"

print_string "\027[31m blabla"

Character codes are in decimal in OCaml, not in octal.

-- 
Daniel de Rauglaudre
http://pauillac.inria.fr/~ddr/