From dbf1f8200c6d5d3ddb61aa093376cb78156980e1 Mon Sep 17 00:00:00 2001 From: Hugo Herbelin Date: Wed, 5 Jul 2017 22:52:09 +0200 Subject: Adding support for bindings tags to explicit prefix/suffix rather than colors. This is usable for no-color terminal. For instance, a typical application in mind is the Coq-generate names marker which can be rendered with a color if the interface supports it and a prefix "~" if the interface does not support colors. --- vernac/topfmt.mli | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vernac/topfmt.mli') diff --git a/vernac/topfmt.mli b/vernac/topfmt.mli index 0e781bcc1..6e006fc6c 100644 --- a/vernac/topfmt.mli +++ b/vernac/topfmt.mli @@ -41,11 +41,13 @@ val std_logger : ?pre_hdr:Pp.std_ppcmds -> Feedback.level -> Pp.std_ppcmds -> val emacs_logger : ?pre_hdr:Pp.std_ppcmds -> Feedback.level -> Pp.std_ppcmds -> unit (** Color output *) -val init_color_output : unit -> unit val clear_styles : unit -> unit val parse_color_config : string -> unit val dump_tags : unit -> (string * Terminal.style) list +(** Initialization of interpretation of tags *) +val init_terminal_output : color:bool -> unit + (** Error printing *) (* To be deprecated when we can fully move to feedback-based error printing. *) -- cgit v1.2.3