xref: /titanic_52/usr/src/uts/common/sys/crtctl.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate  * with the License.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate  * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate  *
14*7c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate  *
20*7c478bd9Sstevel@tonic-gate  * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23*7c478bd9Sstevel@tonic-gate /*	  All Rights Reserved  	*/
24*7c478bd9Sstevel@tonic-gate 
25*7c478bd9Sstevel@tonic-gate 
26*7c478bd9Sstevel@tonic-gate #ifndef _SYS_CRTCTL_H
27*7c478bd9Sstevel@tonic-gate #define	_SYS_CRTCTL_H
28*7c478bd9Sstevel@tonic-gate 
29*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 11.2	*/
30*7c478bd9Sstevel@tonic-gate 
31*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
32*7c478bd9Sstevel@tonic-gate extern "C" {
33*7c478bd9Sstevel@tonic-gate #endif
34*7c478bd9Sstevel@tonic-gate 
35*7c478bd9Sstevel@tonic-gate /*
36*7c478bd9Sstevel@tonic-gate  *	Define the cursor control codes
37*7c478bd9Sstevel@tonic-gate  */
38*7c478bd9Sstevel@tonic-gate #define	ESC	033	/* Escape for command */
39*7c478bd9Sstevel@tonic-gate 
40*7c478bd9Sstevel@tonic-gate /* Commands */
41*7c478bd9Sstevel@tonic-gate #define	CUP	0101	/* Cursor up */
42*7c478bd9Sstevel@tonic-gate #define	CDN	0102	/* Cursor down */
43*7c478bd9Sstevel@tonic-gate #define	CRI	0103	/* Cursor right */
44*7c478bd9Sstevel@tonic-gate #define	CLE	0104	/* Cursor left */
45*7c478bd9Sstevel@tonic-gate #define	NL	0134	/* Terminal newline function */
46*7c478bd9Sstevel@tonic-gate #define	HOME	0105	/* Cursor home */
47*7c478bd9Sstevel@tonic-gate #define	VHOME	0106	/* cursor home to variable portion */
48*7c478bd9Sstevel@tonic-gate #define	LCA	0107	/* Load cursor, followed by (x,y) in (col,row) */
49*7c478bd9Sstevel@tonic-gate #define	CRTN	0133	/* Return cursor to beginning of line */
50*7c478bd9Sstevel@tonic-gate 
51*7c478bd9Sstevel@tonic-gate #define	STB	0110	/* Start blink */
52*7c478bd9Sstevel@tonic-gate #define	SPB	0111	/* Stop blink */
53*7c478bd9Sstevel@tonic-gate #define	CS	0112	/* Clear Screen */
54*7c478bd9Sstevel@tonic-gate #define	CM	0135	/* Clear Memory */
55*7c478bd9Sstevel@tonic-gate #define	EEOL	0113	/* Erase to end of line */
56*7c478bd9Sstevel@tonic-gate #define	EEOP	0114	/* Erase to end of page */
57*7c478bd9Sstevel@tonic-gate #define	DC	0115	/* Delete character */
58*7c478bd9Sstevel@tonic-gate #define	DL	0116	/* Delete line */
59*7c478bd9Sstevel@tonic-gate #define	IC	0117	/* Insert character */
60*7c478bd9Sstevel@tonic-gate #define	IL	0120	/* Insert line */
61*7c478bd9Sstevel@tonic-gate #define	KBL	0121	/* keyboard lock */
62*7c478bd9Sstevel@tonic-gate #define	KBU	0122	/* keyboard unlock */
63*7c478bd9Sstevel@tonic-gate #define	ATAB	0123	/* Set column of tabs */
64*7c478bd9Sstevel@tonic-gate #define	STAB	0124	/* Set single tab */
65*7c478bd9Sstevel@tonic-gate #define	CTAB	0125	/* Clear Tabs */
66*7c478bd9Sstevel@tonic-gate #define	USCRL	0126	/* Scroll up one line */
67*7c478bd9Sstevel@tonic-gate #define	DSCRL	0127	/* Scroll down one line */
68*7c478bd9Sstevel@tonic-gate #define	ASEG	0130	/* Advance segment */
69*7c478bd9Sstevel@tonic-gate #define	BPRT	0131	/* Begin protect */
70*7c478bd9Sstevel@tonic-gate #define	EPRT	0132	/* End   protect */
71*7c478bd9Sstevel@tonic-gate 
72*7c478bd9Sstevel@tonic-gate #define	SVSCN	0136	/* Define variable portion of screen (OS only) */
73*7c478bd9Sstevel@tonic-gate #define	UVSCN	0137	/* Scroll Up variable portion of screen */
74*7c478bd9Sstevel@tonic-gate #define	DVSCN	0140	/* Scroll Down variable portion of screen */
75*7c478bd9Sstevel@tonic-gate 
76*7c478bd9Sstevel@tonic-gate #define	SVID	0141	/* Set Video Attributes */
77*7c478bd9Sstevel@tonic-gate #define	CVID	0142	/* Clear Video Attributes */
78*7c478bd9Sstevel@tonic-gate #define	DVID	0143	/* Define Video Attributes */
79*7c478bd9Sstevel@tonic-gate /* Video Attribute Definitions */
80*7c478bd9Sstevel@tonic-gate #define	VID_NORM	000	/* normal */
81*7c478bd9Sstevel@tonic-gate #define	VID_UL		001	/* underline */
82*7c478bd9Sstevel@tonic-gate #define	VID_BLNK	002	/* blink */
83*7c478bd9Sstevel@tonic-gate #define	VID_REV	004	/* reverse video */
84*7c478bd9Sstevel@tonic-gate #define	VID_DIM	010	/* dim intensity */
85*7c478bd9Sstevel@tonic-gate #define	VID_BOLD	020	/* bright intensity */
86*7c478bd9Sstevel@tonic-gate #define	VID_OFF	040	/* blank out field */
87*7c478bd9Sstevel@tonic-gate 
88*7c478bd9Sstevel@tonic-gate #define	BRK	000	/* transmit break */
89*7c478bd9Sstevel@tonic-gate #define	HIQ	001	/* Put remainder of write on high priority queue. */
90*7c478bd9Sstevel@tonic-gate 
91*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
92*7c478bd9Sstevel@tonic-gate }
93*7c478bd9Sstevel@tonic-gate #endif
94*7c478bd9Sstevel@tonic-gate 
95*7c478bd9Sstevel@tonic-gate #endif	/* _SYS_CRTCTL_H */
96