Commits

Paweł Wieczorek committed face844

minor

  • Participants
  • Parent commits 4671c90

Comments (0)

Files changed (6)

 	${LIBS}\
 	_build/src/StringPainter.a
 
-.PHONY : ${LIBS} demo
+.PHONY: ${LIBS} lib demo
 
-all: demo doc
+all: lib
 
-install: ${LIBS}
+install: lib
 	${OCAMLFIND} install stringpainter META ${LIB_FILES}
 
 uninstall:
 doc:
 	${OCAMLBUILD} ${SOURCE_DIRS} src/StringPainter.docdir/index.html
 
-${LIBS}:
+lib:
 	${OCAMLBUILD} ${SOURCE_DIRS} ${LIBS_}
 
-demo: ${LIBS}
+demo: install
 	cd demo; ${MAKE} all
 
 clean:

File demo/_tags

-<*.*>: package(stringpainter)

File demo/demo_tags

+<*.*>: package(stringpainter)

File src/ANSI_Colors.ml

  * ANSI escapes codes
  ********************************************************************************************************************)
 
+(** ANSI color *)
 type color
     = Black
     | Red
     | Foreground color -> 30 + code_of_color color
 
 let escape codes str =
-    let f = fun str c -> str ^ ";" ^ string_of_int (code_of_attribute c)
-    in
+    let f = fun str c -> str ^ ";" ^ string_of_int (code_of_attribute c) in
+    (List.fold_left f "\027[" codes) ^ "m" ^ str ^ "\027[0m"
 
-(List.fold_left f "\027[" codes) ^ "m" ^ str ^ "\027[0m"
-

File src/StringPainter.mlpack

+Engine
 Basic
 Prioritized

File src/StringPainter.odocl

 Basic
 Prioritized
+ANSI_Colors
+ColorScheme