OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 #library('colors'); | |
6 | |
7 final String GREEN_COLOR = '\u001b[32m'; | |
8 final String RED_COLOR = '\u001b[31m'; | |
9 final String MAGENTA_COLOR = '\u001b[35m'; | |
10 final String NO_COLOR = '\u001b[0m'; | |
11 | |
12 String green(String string) => "${GREEN_COLOR}$string${NO_COLOR}"; | |
13 String red(String string) => "${RED_COLOR}$string${NO_COLOR}"; | |
14 String magenta(String string) => "${MAGENTA_COLOR}$string${NO_COLOR}"; | |
OLD | NEW |