/* True if styling is enabled. */
#if defined (__MSDOS__)
-bool cli_styling = false;
+static bool cli_styling = false;
#else
-bool cli_styling = true;
+static bool cli_styling = true;
#endif
/* True if source styling is enabled. Note that this is only
/* See cli/cli-style.h. */
+void
+disable_cli_styling ()
+{
+ cli_styling = false;
+}
+
+/* See cli/cli-style.h. */
+
+bool
+term_cli_styling ()
+{
+ return cli_styling;
+}
+
+/* See cli/cli-style.h. */
+
void
disable_styling_from_environment ()
{
/* True if disassembler styling is enabled. */
extern bool disassembler_styling;
-/* True if styling is enabled. */
-extern bool cli_styling;
-
/* Check for environment variables that indicate styling should start as
disabled. If any are found then disable styling. Styling is never
enabled by this call. If styling was already disabled then it remains
disabled after this call. */
extern void disable_styling_from_environment ();
+/* Equivalent to 'set style enabled off'. Can be used during GDB's start
+ up if a command line option, or environment variable, indicates that
+ styling should be turned off. */
+extern void disable_cli_styling ();
+
+/* Return true styled output is currently enabled. */
+extern bool term_cli_styling ();
+
#endif /* GDB_CLI_CLI_STYLE_H */
quiet = 1;
/* Disable all output styling when running in batch mode. */
- cli_styling = false;
+ disable_cli_styling ();
}
}
/* tui_apply_style resets the style entirely, so be sure to call it
before applying ATTRS. */
- if (cli_styling)
+ if (term_cli_styling ())
tui_apply_style (win, (highlight_flag
? tui_active_border_style.style ()
: tui_border_style.style ()));
\f
-/* Return true if styling is currently enabled. */
-
-static bool
-term_cli_styling ()
-{
- return cli_styling;
-}
-
-\f
-
string_file::~string_file ()
{}