aboutsummaryrefslogtreecommitdiffhomepage
path: root/toplevel
diff options
context:
space:
mode:
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/coqtop.ml8
1 files changed, 5 insertions, 3 deletions
diff --git a/toplevel/coqtop.ml b/toplevel/coqtop.ml
index 8c394316e..08c235023 100644
--- a/toplevel/coqtop.ml
+++ b/toplevel/coqtop.ml
@@ -58,16 +58,18 @@ let init_color () =
match colors with
| None ->
(** Default colors *)
- Topfmt.init_color_output ()
+ Topfmt.init_terminal_output ~color:true
| Some "" ->
(** No color output *)
- ()
+ Topfmt.init_terminal_output ~color:false
| Some s ->
(** Overwrite all colors *)
Topfmt.clear_styles ();
Topfmt.parse_color_config s;
- Topfmt.init_color_output ()
+ Topfmt.init_terminal_output ~color:true
end
+ else
+ Topfmt.init_terminal_output ~color:false
let toploop_init = ref begin fun x ->
let () = init_color () in