xref: /titanic_41/usr/src/lib/libcurses/screen/unctrl.c (revision cde2885fdf538266ee2a3b08dee2d5075ce8fa2b)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 1997 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 /*	Copyright (c) 1988 AT&T	*/
28 /*	  All Rights Reserved	*/
29 
30 /*
31  * University Copyright- Copyright (c) 1982, 1986, 1988
32  * The Regents of the University of California
33  * All Rights Reserved
34  *
35  * University Acknowledgment- Portions of this document are derived from
36  * software developed by the University of California, Berkeley, and its
37  * contributors.
38  */
39 
40 #pragma ident	"%Z%%M%	%I%	%E% SMI"
41 
42 /*
43  * define unctrl codes for each character
44  *
45  */
46 
47 /* LINTLIBRARY */
48 char	*_unctrl[]	= {	/* unctrl codes for ttys		*/
49 	"^@", "^A", "^B", "^C", "^D", "^E", "^F", "^G", "^H", "^I", "^J", "^K",
50 	"^L", "^M", "^N", "^O", "^P", "^Q", "^R", "^S", "^T", "^U", "^V", "^W",
51 	"^X", "^Y", "^Z", "^[", "^\\", "^]", "^~", "^_",
52 	" ", "!", "\"", "#", "$",  "%", "&", "'", "(", ")", "*", "+", ",", "-",
53 	".", "/", "0",  "1", "2",  "3", "4", "5", "6", "7", "8", "9", ":", ";",
54 	"<", "=", ">",  "?", "@",  "A", "B", "C", "D", "E", "F", "G", "H", "I",
55 	"J", "K", "L",  "M", "N",  "O", "P", "Q", "R", "S", "T", "U", "V", "W",
56 	"X", "Y", "Z",  "[", "\\", "]", "^", "_", "`", "a", "b", "c", "d", "e",
57 	"f", "g", "h",  "i", "j",  "k", "l", "m", "n", "o", "p", "q", "r", "s",
58 	"t", "u", "v",  "w", "x",  "y", "z", "{", "|", "}", "~", "^?"
59 #ifdef DEBUG
60 	,
61 	"M-^@", "M-^A", "M-^B", "M-^C", "M-^D", "M-^E", "M-^F", "M-^G",
62 	"M-^H", "M-^I", "M-^J", "M-^K", "M-^L", "M-^M", "M-^N", "M-^O",
63 	"M-^P", "M-^Q", "M-^R", "M-^S", "M-^T", "M-^U", "M-^V", "M-^W",
64 	"M-^X", "M-^Y", "M-^Z", "M-^[", "M-^\\", "M-^]", "M-^~", "M-^_",
65 	"M- ", "M-!", "M-\"", "M-#", "M-$", "M-%", "M-&", "M-'",
66 	"M-(", "M-)", "M-*", "M-+", "M-,", "M--", "M-.", "M-/",
67 	"M-0", "M-1", "M-2", "M-3", "M-4", "M-5", "M-6", "M-7",
68 	"M-8", "M-9", "M-:", "M-;", "M-<", "M-=", "M->", "M-?",
69 	"M-@", "M-A", "M-B", "M-C", "M-D", "M-E", "M-F", "M-G",
70 	"M-H", "M-I", "M-J", "M-K", "M-L", "M-M", "M-N", "M-O",
71 	"M-P", "M-Q", "M-R", "M-S", "M-T", "M-U", "M-V", "M-W",
72 	"M-X", "M-Y", "M-Z", "M-[", "M-\\", "M-]", "M-^", "M-_",
73 	"M-`", "M-a", "M-b", "M-c", "M-d", "M-e", "M-f", "M-g",
74 	"M-h", "M-i", "M-j", "M-k", "M-l", "M-m", "M-n", "M-o",
75 	"M-p", "M-q", "M-r", "M-s", "M-t", "M-u", "M-v", "M-w",
76 	"M-x", "M-y", "M-z", "M-{", "M-|", "M-}", "M-~", "M-^?"
77 #endif /* DEBUG */
78 };
79