xref: /illumos-gate/usr/src/ucblib/libcurses/unctrl.c (revision 8c0b080c)
1 /*
2  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 /*	Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T	*/
7 /*	  All Rights Reserved  	*/
8 
9 /*
10  * Copyright (c) 1980 Regents of the University of California.
11  * All rights reserved.  The Berkeley software License Agreement
12  * specifies the terms and conditions for redistribution.
13  */
14 
15 #ifndef lint
16 static char
17 sccsid[] = "@(#)unctrl.c 1.6 88/02/08 SMI"; /* from UCB 5.1 85/06/07 */
18 #endif	/* not lint */
19 
20 /*
21  * define unctrl codes for each character
22  *
23  */
24 
25 /* LINTLIBRARY */
26 char	*_unctrl[]	= {	/* unctrl codes for ttys		*/
27 	"^@", "^A", "^B", "^C", "^D", "^E", "^F", "^G", "^H", "^I", "^J", "^K",
28 	"^L", "^M", "^N", "^O", "^P", "^Q", "^R", "^S", "^T", "^U", "^V", "^W",
29 	"^X", "^Y", "^Z", "^[", "^\\", "^]", "^~", "^_",
30 	" ", "!", "\"", "#", "$",  "%", "&", "'", "(", ")", "*", "+", ",", "-",
31 	".", "/", "0",  "1", "2",  "3", "4", "5", "6", "7", "8", "9", ":", ";",
32 	"<", "=", ">",  "?", "@",  "A", "B", "C", "D", "E", "F", "G", "H", "I",
33 	"J", "K", "L",  "M", "N",  "O", "P", "Q", "R", "S", "T", "U", "V", "W",
34 	"X", "Y", "Z",  "[", "\\", "]", "^", "_", "`", "a", "b", "c", "d", "e",
35 	"f", "g", "h",  "i", "j",  "k", "l", "m", "n", "o", "p", "q", "r", "s",
36 	"t", "u", "v",  "w", "x",  "y", "z", "{", "|", "}", "~", "^?"
37 };
38