diff options
author | 2015-05-14 12:49:41 +0200 | |
---|---|---|
committer | 2015-05-14 13:02:17 +0200 | |
commit | 5f8dc36fb2d65699233b9ac9a3ff9f93701a01cb (patch) | |
tree | 57855137873a81f1b026b8be73560c71a9915acb /toplevel | |
parent | 81eb133d64ac81cbf6962d624b20c1aa55c2baae (diff) |
The -list-tag options now prints the corresponding COQ_COLORS value.
Diffstat (limited to 'toplevel')
-rw-r--r-- | toplevel/coqtop.ml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/toplevel/coqtop.ml b/toplevel/coqtop.ml index 160e549af..af7169ad6 100644 --- a/toplevel/coqtop.ml +++ b/toplevel/coqtop.ml @@ -281,7 +281,16 @@ let print_style_tags () = in print_string opt in - List.iter iter tags; + let make (t, st) = match st with + | None -> None + | Some st -> + let tags = List.map string_of_int (Terminal.repr st) in + let t = String.concat "." (Ppstyle.repr t) in + Some (t ^ "=" ^ String.concat ";" tags) + in + let repr = List.map_filter make tags in + let () = Printf.printf "COQ_COLORS=\"%s\"\n" (String.concat ":" repr) in + let () = List.iter iter tags in flush_all () let error_missing_arg s = |