[opam-commits] Errored: dra27/opam#52 (test-color - 8e422f3)

Travis CI builds at travis-ci.org
Fri Jan 5 15:57:01 GMT 2018


Build Update for dra27/opam
-------------------------------------

Build: #52
Status: Errored

Duration: 4 minutes and 44 seconds
Commit: 8e422f3 (test-color)
Author: David Allsopp
Message: Support coloured output for Windows console

Prior to Windows 10 1511, the Windows Console didn't natively support ANSI
escape sequences, but it does include API functions providing most of the
required support. In order to maintain the option of compiling with MSVC,
a custom wrapper is implemented for the small number of required escape
sequences, rather than using Cygwin or MSYS's ANSI layer.

The need to post-process coloured messages means that the format
signatures of various functions in OpamConsole have changed from printf
to sprintf form and it is imperative that all output to the Console
which includes coloured text goes through one of OpamConsole's functions
(in particular, print_string, Printf.printf, output_string std* must not
be used).

Particular care has been taken to ensure that OpamConsole.log and
OpamConsole.slog behave in the same way; specifically this means that
strings logged should never include ANSI escape sequences because these
cannot be translated.

(note that an earlier attempt at doing this used a pipe to write the
data via kfprintf in order to maintain the same %a behaviour and then read
the string back from the pipe, but this leads to problems if the data being
written is larger than the pipe's buffer and it seems excessive to
introduce multi-threading or two processes solely to handle debugging
console output)

Signed-off-by: David Allsopp <david.allsopp at metastack.com>

View the changeset: https://github.com/dra27/opam/compare/867d992a5dca^...8e422f3cd268

View the full build log and details: https://travis-ci.org/dra27/opam/builds/325481429?utm_source=email&utm_medium=notification

--

You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/opam-commits/attachments/20180105/2bd3c7d9/attachment.html>


More information about the Opam-commits mailing list