From: Vu Ngoc San <san.vu-ngoc@ujf-grenoble.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] color on linux terminal
Date: Sat, 13 Jan 2007 21:53:14 +0100 [thread overview]
Message-ID: <45A946BA.5020602@ujf-grenoble.fr> (raw)
In-Reply-To: <slrneqig8s.8ek.mweihs@localhost.localdomain>
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
---
next prev parent reply other threads:[~2007-01-13 20:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-13 20:29 Markus Weihs
2007-01-13 20:52 ` [Caml-list] " Daniel de Rauglaudre
2007-01-13 21:05 ` Markus Weihs
2007-01-13 20:53 ` Vu Ngoc San [this message]
2007-01-13 20:56 ` [Caml-list] " Eric Cooper
2007-01-16 18:23 ` Florian Weimer
2007-01-21 17:11 ` Xavier Leroy
2007-01-13 20:56 ` Goulagman
2007-01-13 21:38 ` Philippe Wang
2007-01-13 22:45 ` Christophe TROESTLER
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45A946BA.5020602@ujf-grenoble.fr \
--to=san.vu-ngoc@ujf-grenoble.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox