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