Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 86fd57b864e79835d8f7ab7e058637a1 > files > 124

ocaml-lambda-term-devel-1.4-3.mga4.x86_64.rpm

(*
 * colors_256.ml
 * -------------
 * Copyright : (c) 2011, Jeremie Dimino <jeremie@dimino.org>
 * Licence   : BSD3
 *
 * This file is a part of Lambda-Term.
 *)

open Lwt
open LTerm_style
open LTerm_text

lwt () =
  for_lwt i = 0 to 255 do
    LTerm.printls (eval [S(Printf.sprintf "color %d: " i);
                         B_fg(index i); S"example"; E_fg])
  done