Mercurial > hg > truffle
comparison graal/com.oracle.jvmci.debug/src/com/oracle/jvmci/debug/AnsiColor.java @ 21554:b1530a6cce8c
renamed com.oracle.graal.[debug|options|hotspotvmconfig]* modules to com.oracle.jvmci.[debug|options|hotspotvmconfig]* modules (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 26 May 2015 23:21:15 +0200 |
parents | graal/com.oracle.graal.debug/src/com/oracle/graal/debug/AnsiColor.java@c88ab4f1f04a |
children |
comparison
equal
deleted
inserted
replaced
21553:0910a9497b02 | 21554:b1530a6cce8c |
---|---|
1 /* | |
2 * Copyright (c) 2014, 2014, Oracle and/or its affiliates. All rights reserved. | |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
4 * | |
5 * This code is free software; you can redistribute it and/or modify it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |
20 * or visit www.oracle.com if you need additional information or have any | |
21 * questions. | |
22 */ | |
23 package com.oracle.jvmci.debug; | |
24 | |
25 /** | |
26 * Ansi terminal color escape codes. | |
27 */ | |
28 public final class AnsiColor { | |
29 /** Foreground black. */ | |
30 public static final String BLACK = "\u001b[30m"; | |
31 /** Foreground red. */ | |
32 public static final String RED = "\u001b[31m"; | |
33 /** Foreground green. */ | |
34 public static final String GREEN = "\u001b[32m"; | |
35 /** Foreground yellow. */ | |
36 public static final String YELLOW = "\u001b[33m"; | |
37 /** Foreground blue. */ | |
38 public static final String BLUE = "\u001b[34m"; | |
39 /** Foreground magenta. */ | |
40 public static final String MAGENTA = "\u001b[35m"; | |
41 /** Foreground cyan. */ | |
42 public static final String CYAN = "\u001b[36m"; | |
43 /** Foreground white. */ | |
44 public static final String WHITE = "\u001b[37m"; | |
45 | |
46 /** Foreground bold black. */ | |
47 public static final String BOLD_BLACK = "\u001b[30;1m"; | |
48 /** Foreground bold red. */ | |
49 public static final String BOLD_RED = "\u001b[31;1m"; | |
50 /** Foreground bold green. */ | |
51 public static final String BOLD_GREEN = "\u001b[32;1m"; | |
52 /** Foreground bold yellow. */ | |
53 public static final String BOLD_YELLOW = "\u001b[33;1m"; | |
54 /** Foreground bold blue. */ | |
55 public static final String BOLD_BLUE = "\u001b[34;1m"; | |
56 /** Foreground bold magenta. */ | |
57 public static final String BOLD_MAGENTA = "\u001b[35;1m"; | |
58 /** Foreground bold cyan. */ | |
59 public static final String BOLD_CYAN = "\u001b[36;1m"; | |
60 /** Foreground bold white. */ | |
61 public static final String BOLD_WHITE = "\u001b[37;1m"; | |
62 | |
63 /** Background black. */ | |
64 public static final String BG_BLACK = "\u001b[40m"; | |
65 /** Background red. */ | |
66 public static final String BG_RED = "\u001b[41m"; | |
67 /** Background green. */ | |
68 public static final String BG_GREEN = "\u001b[42m"; | |
69 /** Background yellow. */ | |
70 public static final String BG_YELLOW = "\u001b[43m"; | |
71 /** Background blue. */ | |
72 public static final String BG_BLUE = "\u001b[44m"; | |
73 /** Background magenta. */ | |
74 public static final String BG_MAGENTA = "\u001b[45m"; | |
75 /** Background cyan. */ | |
76 public static final String BG_CYAN = "\u001b[46m"; | |
77 /** Background white. */ | |
78 public static final String BG_WHITE = "\u001b[47m"; | |
79 | |
80 /** Reset. */ | |
81 public static final String RESET = "\u001b[0m"; | |
82 /** Underline. */ | |
83 public static final String UNDERLINED = "\u001b[4m"; | |
84 | |
85 /** Prevent instantiation. */ | |
86 private AnsiColor() { | |
87 } | |
88 } |