Skip to content

Commit

Permalink
fix color of text in command line Lambdapi when Console.out is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Alidra committed Apr 12, 2024
1 parent 7892960 commit d8bb2bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/console.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ let set_default_verbose : int -> unit = fun i ->
[lvl] is strictly greater than the current verbosity level. Note that the
output channel is automatically flushed if logging modes are enabled. *)
let out : int -> 'a outfmt -> 'a = fun lvl fmt ->
Color.update_with_color Stdlib.(!out_fmt);
let out = Format.(if lvl > !verbose then ifprintf else fprintf) in
out Stdlib.(!out_fmt) (fmt ^^ "@.")

Expand Down

0 comments on commit d8bb2bb

Please sign in to comment.