01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2007, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.resources;
17:
18: /**
19: * Escape codes from ANSI X3.64 standard (aka ECMA-48 and ISO/IEC 6429).
20: *
21: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/metadata/src/main/java/org/geotools/resources/X364.java $
22: * @version $Id: X364.java 24607 2007-02-26 22:05:40Z desruisseaux $
23: * @author Martin Desruisseaux
24: *
25: * @see http://en.wikipedia.org/wiki/ANSI_escape_code
26: */
27: public final class X364 {
28: /** Do not allows instantiation of this class. */
29: private X364() {
30: }
31:
32: /** The espace sequence. */
33: private static final String ESCAPE = "\u001B[";
34: /** Reset all attributes off. */
35: public static final String RESET = ESCAPE + "0m";
36: /** Red foreground. */
37: public static final String RED = ESCAPE + "31m";
38: /** Green foreground. */
39: public static final String GREEN = ESCAPE + "32m";
40: /** Yellow foreground. */
41: public static final String YELLOW = ESCAPE + "33m";
42: /** Blue foreground. */
43: public static final String BLUE = ESCAPE + "34m";
44: /** Magenta foreground. */
45: public static final String MAGENTA = ESCAPE + "35m";
46: /** Cyan foreground. */
47: public static final String CYAN = ESCAPE + "36m";
48: /** Default foreground. */
49: public static final String DEFAULT = ESCAPE + "39m";
50:
51: /** Red background. */
52: public static final String BACKGROUND_RED = ESCAPE + "41m";
53: /** Default background. */
54: public static final String BACKGROUND_DEFAULT = ESCAPE + "49m";
55:
56: }
|