xref: /titanic_44/usr/src/uts/common/sys/crtctl.h (revision ee5416c9d7e449233197d5d20bc6b81e4ff091b2)
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 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 #ifndef _SYS_CRTCTL_H
27 #define	_SYS_CRTCTL_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 11.2	*/
30 
31 #ifdef	__cplusplus
32 extern "C" {
33 #endif
34 
35 /*
36  *	Define the cursor control codes
37  */
38 #define	ESC	033	/* Escape for command */
39 
40 /* Commands */
41 #define	CUP	0101	/* Cursor up */
42 #define	CDN	0102	/* Cursor down */
43 #define	CRI	0103	/* Cursor right */
44 #define	CLE	0104	/* Cursor left */
45 #define	NL	0134	/* Terminal newline function */
46 #define	HOME	0105	/* Cursor home */
47 #define	VHOME	0106	/* cursor home to variable portion */
48 #define	LCA	0107	/* Load cursor, followed by (x,y) in (col,row) */
49 #define	CRTN	0133	/* Return cursor to beginning of line */
50 
51 #define	STB	0110	/* Start blink */
52 #define	SPB	0111	/* Stop blink */
53 #define	CS	0112	/* Clear Screen */
54 #define	CM	0135	/* Clear Memory */
55 #define	EEOL	0113	/* Erase to end of line */
56 #define	EEOP	0114	/* Erase to end of page */
57 #define	DC	0115	/* Delete character */
58 #define	DL	0116	/* Delete line */
59 #define	IC	0117	/* Insert character */
60 #define	IL	0120	/* Insert line */
61 #define	KBL	0121	/* keyboard lock */
62 #define	KBU	0122	/* keyboard unlock */
63 #define	ATAB	0123	/* Set column of tabs */
64 #define	STAB	0124	/* Set single tab */
65 #define	CTAB	0125	/* Clear Tabs */
66 #define	USCRL	0126	/* Scroll up one line */
67 #define	DSCRL	0127	/* Scroll down one line */
68 #define	ASEG	0130	/* Advance segment */
69 #define	BPRT	0131	/* Begin protect */
70 #define	EPRT	0132	/* End   protect */
71 
72 #define	SVSCN	0136	/* Define variable portion of screen (OS only) */
73 #define	UVSCN	0137	/* Scroll Up variable portion of screen */
74 #define	DVSCN	0140	/* Scroll Down variable portion of screen */
75 
76 #define	SVID	0141	/* Set Video Attributes */
77 #define	CVID	0142	/* Clear Video Attributes */
78 #define	DVID	0143	/* Define Video Attributes */
79 /* Video Attribute Definitions */
80 #define	VID_NORM	000	/* normal */
81 #define	VID_UL		001	/* underline */
82 #define	VID_BLNK	002	/* blink */
83 #define	VID_REV	004	/* reverse video */
84 #define	VID_DIM	010	/* dim intensity */
85 #define	VID_BOLD	020	/* bright intensity */
86 #define	VID_OFF	040	/* blank out field */
87 
88 #define	BRK	000	/* transmit break */
89 #define	HIQ	001	/* Put remainder of write on high priority queue. */
90 
91 #ifdef	__cplusplus
92 }
93 #endif
94 
95 #endif	/* _SYS_CRTCTL_H */
96