diff options
| author | Jim Fehrle | 2018-11-14 18:35:50 -0800 |
|---|---|---|
| committer | Jim Fehrle | 2019-02-26 13:23:33 -0800 |
| commit | 9736f255287a7207d00422b06de802d62b8304fe (patch) | |
| tree | 41dc987f244dfbab502a73a1deb0b68cb5680d2c /toplevel | |
| parent | 4610afafcbd79f38876e528c0f30c9347648efc4 (diff) | |
Initialize styles so textual markers are used when color is not enabled
Diffstat (limited to 'toplevel')
| -rw-r--r-- | toplevel/coqtop.ml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/toplevel/coqtop.ml b/toplevel/coqtop.ml index 92ac200bc0..f2c24807b8 100644 --- a/toplevel/coqtop.ml +++ b/toplevel/coqtop.ml @@ -94,8 +94,9 @@ let init_color opts = | Some "" -> false (* No color output *) | Some s -> Topfmt.parse_color_config s; true (* Overwrite all colors *) end - else - false + else begin + Topfmt.default_styles (); false (** textual markers, no color *) + end in if Proof_diffs.show_diffs () && not term_color then (prerr_endline "Error: -diffs requires enabling -color"; exit 1); |
