001/* 002 * Copyright (c) 2014, 2014, Oracle and/or its affiliates. All rights reserved. 003 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 004 * 005 * This code is free software; you can redistribute it and/or modify it 006 * under the terms of the GNU General Public License version 2 only, as 007 * published by the Free Software Foundation. 008 * 009 * This code is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 011 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 012 * version 2 for more details (a copy is included in the LICENSE file that 013 * accompanied this code). 014 * 015 * You should have received a copy of the GNU General Public License version 016 * 2 along with this work; if not, write to the Free Software Foundation, 017 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 018 * 019 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 020 * or visit www.oracle.com if you need additional information or have any 021 * questions. 022 */ 023package com.oracle.graal.debug; 024 025/** 026 * Ansi terminal color escape codes. 027 */ 028public final class AnsiColor { 029 /** Foreground black. */ 030 public static final String BLACK = "\u001b[30m"; 031 /** Foreground red. */ 032 public static final String RED = "\u001b[31m"; 033 /** Foreground green. */ 034 public static final String GREEN = "\u001b[32m"; 035 /** Foreground yellow. */ 036 public static final String YELLOW = "\u001b[33m"; 037 /** Foreground blue. */ 038 public static final String BLUE = "\u001b[34m"; 039 /** Foreground magenta. */ 040 public static final String MAGENTA = "\u001b[35m"; 041 /** Foreground cyan. */ 042 public static final String CYAN = "\u001b[36m"; 043 /** Foreground white. */ 044 public static final String WHITE = "\u001b[37m"; 045 046 /** Foreground bold black. */ 047 public static final String BOLD_BLACK = "\u001b[30;1m"; 048 /** Foreground bold red. */ 049 public static final String BOLD_RED = "\u001b[31;1m"; 050 /** Foreground bold green. */ 051 public static final String BOLD_GREEN = "\u001b[32;1m"; 052 /** Foreground bold yellow. */ 053 public static final String BOLD_YELLOW = "\u001b[33;1m"; 054 /** Foreground bold blue. */ 055 public static final String BOLD_BLUE = "\u001b[34;1m"; 056 /** Foreground bold magenta. */ 057 public static final String BOLD_MAGENTA = "\u001b[35;1m"; 058 /** Foreground bold cyan. */ 059 public static final String BOLD_CYAN = "\u001b[36;1m"; 060 /** Foreground bold white. */ 061 public static final String BOLD_WHITE = "\u001b[37;1m"; 062 063 /** Background black. */ 064 public static final String BG_BLACK = "\u001b[40m"; 065 /** Background red. */ 066 public static final String BG_RED = "\u001b[41m"; 067 /** Background green. */ 068 public static final String BG_GREEN = "\u001b[42m"; 069 /** Background yellow. */ 070 public static final String BG_YELLOW = "\u001b[43m"; 071 /** Background blue. */ 072 public static final String BG_BLUE = "\u001b[44m"; 073 /** Background magenta. */ 074 public static final String BG_MAGENTA = "\u001b[45m"; 075 /** Background cyan. */ 076 public static final String BG_CYAN = "\u001b[46m"; 077 /** Background white. */ 078 public static final String BG_WHITE = "\u001b[47m"; 079 080 /** Reset. */ 081 public static final String RESET = "\u001b[0m"; 082 /** Underline. */ 083 public static final String UNDERLINED = "\u001b[4m"; 084 085 /** Prevent instantiation. */ 086 private AnsiColor() { 087 } 088}