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
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.
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]
22 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
23 /* All Rights Reserved */
34 * Define the cursor control codes
36 #define ESC 033 /* Escape for command */
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 */
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 */
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 */
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 */
86 #define BRK 000 /* transmit break */
87 #define HIQ 001 /* Put remainder of write on high priority queue. */
93 #endif /* _SYS_CRTCTL_H */