From: Philippe Wang <lists@philippewang.info>
To: Goulagman <goulagman@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] color on linux terminal
Date: Sat, 13 Jan 2007 22:38:23 +0100 [thread overview]
Message-ID: <07563622-8767-458A-8A8F-095E5863AD1C@philippewang.info> (raw)
In-Reply-To: <19eebd060701131256k71e98475o7e79ac5160afcf9c@mail.gmail.com>
On 13 janv. 07, at 21:56, Goulagman wrote:
> It's because, for Ocaml, the escape sequence \0xx matches the
> ASCII character xx in decimal, not in octal.
>
> print_string "\027[31m blabla" works fine
>
Well, what you said is true, still it's not meant to be explained
like this ! (well I guess and hope so)
The backslash in a character or string sequence introduces a decimal
number between 0 and 255 with *exactly* 3 digits.
You can also write special characters in hexadecimal :
"\xFF" = "\255"
;-)
next prev parent reply other threads:[~2007-01-13 21:38 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 ` [Caml-list] " Vu Ngoc San
2007-01-13 20:56 ` 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 [this message]
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=07563622-8767-458A-8A8F-095E5863AD1C@philippewang.info \
--to=lists@philippewang.info \
--cc=caml-list@inria.fr \
--cc=goulagman@gmail.com \
/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