anchor.diff:    }
   
     // We have to check if the terminal actually supports colors. Currently,
  -  // `Platform.ansiSupported` is hard-coded to true on non-Windows platforms.
  +  // to avoid linking the Dart VM with ncurses, ANSI escape support is reduced
  +  // to `Platform.environment['TERM'].contains("xterm")`.
   
     // The `-S` option of `tput` allows us to query multiple capabilities at
     // once.
  
positive.code: String cyan(String string) => wrap(string, CYAN_COLOR);
  String white(String string) => wrap(string, WHITE_COLOR);
  
  /// True if we should enable colors in output. We enable colors when:
  ///  1. stdout and stderr are terminals,
  ///  2. the terminal supports more than 8 colors, and
  ///  3. the terminal's ANSI color codes matches what we expect.
  ///
  /// Note: do not call this method directly, as it is expensive to
  /// compute. Instead, use [CompilerContext.enableColors].
  bool computeEnableColors(CompilerContext context) {
    bool ansiSupported;
    try {
      // ignore: undefined_getter
      ansiSupported = Platform.ansiSupported;
    } on NoSuchMethodError {
      // Ignored: We're running on an older version of the Dart VM which doesn't
      // implement `ansiSupported`.
    }
  
    if (ansiSupported == false) {
      if (context.options.verbose) {
        print("Not enabling colors, 'Platform.ansiSupported' is false.");
      }
      return false;
    }
  
    if (stdioType(stderr) != StdioType.TERMINAL) {
      if (context.options.verbose) {
        print("Not enabling colors, stderr isn't a terminal.");
      }
      return false;
    }
  
    if (stdioType(stdout) != StdioType.TERMINAL) {
      if (context.options.verbose) {
        print("Not enabling colors, stdout isn't a terminal.");
      }
      return false;
    }
  
    if (ansiSupported == true && Platform.isWindows) {
      if (context.options.verbose) {
        print("Enabling colors as OS is Windows.");
      }
  
negative.code: 
  import 'dart:convert' show JSON;
  
  import 'dart:io' show Platform, Process, ProcessResult, stderr, stdout;
  
  import 'compiler_context.dart' show CompilerContext;
  
  