HELLO WORLD...
[nikiroo-utils.git] / src / jexer / bits / GraphicsChars.java
1 /**
2 * Jexer - Java Text User Interface - code pages
3 *
4 * Version: $Id$
5 *
6 * Author: Kevin Lamonte, <a href="mailto:kevin.lamonte@gmail.com">kevin.lamonte@gmail.com</a>
7 *
8 * License: LGPLv3 or later
9 *
10 * Copyright: This module is licensed under the GNU Lesser General
11 * Public License Version 3. Please see the file "COPYING" in this
12 * directory for more information about the GNU Lesser General Public
13 * License Version 3.
14 *
15 * Copyright (C) 2015 Kevin Lamonte
16 *
17 * This program is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU Lesser General Public License
19 * as published by the Free Software Foundation; either version 3 of
20 * the License, or (at your option) any later version.
21 *
22 * This program is distributed in the hope that it will be useful, but
23 * WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 * General Public License for more details.
26 *
27 * You should have received a copy of the GNU Lesser General Public
28 * License along with this program; if not, see
29 * http://www.gnu.org/licenses/, or write to the Free Software
30 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
31 * 02110-1301 USA
32 */
33 package jexer.bits;
34
35 /**
36 * Collection of special characters used by the windowing system.
37 */
38 public class GraphicsChars {
39
40 /**
41 * CP437 translation map
42 */
43 static private final char cp437_chars[] = {
44
45 '\u2007', '\u263A', '\u263B', '\u2665', '\u2666', '\u2663', '\u2660', '\u2022',
46 '\u25D8', '\u25CB', '\u25D9', '\u2642', '\u2640', '\u266A', '\u266B', '\u263C',
47 '\u25BA', '\u25C4', '\u2195', '\u203C', '\u00B6', '\u00A7', '\u25AC', '\u21A8',
48 '\u2191', '\u2193', '\u2192', '\u2190', '\u221F', '\u2194', '\u25B2', '\u25BC',
49 '\u0020', '\u0021', '\"', '\u0023', '\u0024', '\u0025', '\u0026', '\'',
50
51 '\u0028', '\u0029', '\u002a', '\u002b', '\u002c', '\u002d', '\u002e', '\u002f',
52 '\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035', '\u0036', '\u0037',
53 '\u0038', '\u0039', '\u003a', '\u003b', '\u003c', '\u003d', '\u003e', '\u003f',
54 '\u0040', '\u0041', '\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
55 '\u0048', '\u0049', '\u004a', '\u004b', '\u004c', '\u004d', '\u004e', '\u004f',
56 '\u0050', '\u0051', '\u0052', '\u0053', '\u0054', '\u0055', '\u0056', '\u0057',
57 '\u0058', '\u0059', '\u005a', '\u005b', '\\', '\u005d', '\u005e', '\u005f',
58 '\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065', '\u0066', '\u0067',
59 '\u0068', '\u0069', '\u006a', '\u006b', '\u006c', '\u006d', '\u006e', '\u006f',
60 '\u0070', '\u0071', '\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
61 '\u0078', '\u0079', '\u007a', '\u007b', '\u007c', '\u007d', '\u007e', '\u007f',
62 '\u00c7', '\u00fc', '\u00e9', '\u00e2', '\u00e4', '\u00e0', '\u00e5', '\u00e7',
63 '\u00ea', '\u00eb', '\u00e8', '\u00ef', '\u00ee', '\u00ec', '\u00c4', '\u00c5',
64 '\u00c9', '\u00e6', '\u00c6', '\u00f4', '\u00f6', '\u00f2', '\u00fb', '\u00f9',
65 '\u00ff', '\u00d6', '\u00dc', '\u00a2', '\u00a3', '\u00a5', '\u20a7', '\u0192',
66 '\u00e1', '\u00ed', '\u00f3', '\u00fa', '\u00f1', '\u00d1', '\u00aa', '\u00ba',
67 '\u00bf', '\u2310', '\u00ac', '\u00bd', '\u00bc', '\u00a1', '\u00ab', '\u00bb',
68 '\u2591', '\u2592', '\u2593', '\u2502', '\u2524', '\u2561', '\u2562', '\u2556',
69 '\u2555', '\u2563', '\u2551', '\u2557', '\u255d', '\u255c', '\u255b', '\u2510',
70 '\u2514', '\u2534', '\u252c', '\u251c', '\u2500', '\u253c', '\u255e', '\u255f',
71 '\u255a', '\u2554', '\u2569', '\u2566', '\u2560', '\u2550', '\u256c', '\u2567',
72 '\u2568', '\u2564', '\u2565', '\u2559', '\u2558', '\u2552', '\u2553', '\u256b',
73 '\u256a', '\u2518', '\u250c', '\u2588', '\u2584', '\u258c', '\u2590', '\u2580',
74 '\u03b1', '\u00df', '\u0393', '\u03c0', '\u03a3', '\u03c3', '\u00b5', '\u03c4',
75 '\u03a6', '\u0398', '\u03a9', '\u03b4', '\u221e', '\u03c6', '\u03b5', '\u2229',
76 '\u2261', '\u00b1', '\u2265', '\u2264', '\u2320', '\u2321', '\u00f7', '\u2248',
77 '\u00b0', '\u2219', '\u00b7', '\u221a', '\u207f', '\u00b2', '\u25a0', '\u00a0'
78 };
79
80
81 static public final char HATCH = cp437_chars[0xB0];
82 static public final char DOUBLE_BAR = cp437_chars[0xCD];
83 static public final char BOX = cp437_chars[0xFE];
84 static public final char CHECK = cp437_chars[0xFB];
85 static public final char TRIPLET = cp437_chars[0xF0];
86 static public final char OMEGA = cp437_chars[0xEA];
87 static public final char PI = cp437_chars[0xE3];
88 static public final char UPARROW = cp437_chars[0x18];
89 static public final char DOWNARROW = cp437_chars[0x19];
90 static public final char RIGHTARROW = cp437_chars[0x1A];
91 static public final char LEFTARROW = cp437_chars[0x1B];
92 static public final char SINGLE_BAR = cp437_chars[0xC4];
93 static public final char BACK_ARROWHEAD = cp437_chars[0x11];
94 static public final char LRCORNER = cp437_chars[0xD9];
95 static public final char URCORNER = cp437_chars[0xBF];
96 static public final char LLCORNER = cp437_chars[0xC0];
97 static public final char ULCORNER = cp437_chars[0xDA];
98 static public final char DEGREE = cp437_chars[0xF8];
99 static public final char PLUSMINUS = cp437_chars[0xF1];
100 static public final char WINDOW_TOP = cp437_chars[0xCD];
101 static public final char WINDOW_LEFT_TOP = cp437_chars[0xD5];
102 static public final char WINDOW_RIGHT_TOP = cp437_chars[0xB8];
103 static public final char WINDOW_SIDE = cp437_chars[0xB3];
104 static public final char WINDOW_LEFT_BOTTOM = cp437_chars[0xD4];
105 static public final char WINDOW_RIGHT_BOTTOM = cp437_chars[0xBE];
106 static public final char WINDOW_LEFT_TEE = cp437_chars[0xC6];
107 static public final char WINDOW_RIGHT_TEE = cp437_chars[0xB5];
108 static public final char WINDOW_SIDE_DOUBLE = cp437_chars[0xBA];
109 static public final char WINDOW_LEFT_TOP_DOUBLE = cp437_chars[0xC9];
110 static public final char WINDOW_RIGHT_TOP_DOUBLE = cp437_chars[0xBB];
111 static public final char WINDOW_LEFT_BOTTOM_DOUBLE = cp437_chars[0xC8];
112 static public final char WINDOW_RIGHT_BOTTOM_DOUBLE = cp437_chars[0xBC];
113 }
114