3b736b8460
Will allow for us to remove dependencies on package:devtools_server in various packages. Change-Id: I055cc7bb05d5b4ce0071e3f88a71cb9596e76c74 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/228022 Reviewed-by: Kenzie (Schmoll) Davisson <kenzieschmoll@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com>
13 lines
432 B
Dart
13 lines
432 B
Dart
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
abstract class ConsoleUtils {
|
|
/// Make [contents] bold when printed to the terminal.
|
|
///
|
|
/// This is a no-op on Windows.
|
|
static String bold(String contents) {
|
|
return '\u001b[1m$contents\u001b[0m';
|
|
}
|
|
}
|