package ansi

  1. Overview
  2. Docs
ANSI escape sequence parser

Install

Dune Dependency

Authors

Maintainers

Sources

ansi-0.7.0.tbz
sha256=672b6a131eebc7d1291a4ad9ad4414a89e251e181e67e83b4ec90cb578e4a8a4
sha512=314bc4ef3ce6fd23dd46033478e6e9fd2307704697603b6d20354f4eaf69666b16c0bdd960e5b347f587465e60f42bb3f21ac1e266cdebd042709d9125791bf0

Description

This package provides a basic ANSI escape parser, allowing the OCurrent web UI to show logs in colour.

Published: 18 Sep 2023

README

OCurrent ANSI escape parser

Program output (such as build logs) often includes ANSI escape codes to colour and style the output. These codes are intended for terminals and are distracting when displayed as text e.g. in web pages. This library inteprets some of the common codes and can convert them to HTML, producing basic styled output (e.g. highlighting errors in red).

It is intended to be used by OCurrent, but may be useful in other projects too.

Licensing

The OCurrent ANSI parser is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Dependencies (5)

  1. tyxml
  2. fmt >= "0.8.7"
  3. astring
  4. ocaml >= "4.10.0"
  5. dune >= "3.6"

Dev Dependencies (2)

  1. odoc with-doc
  2. alcotest with-test

Used by (1)

  1. current_web >= "0.6"

Conflicts

None

OCaml

Innovation. Community. Security.