root/usr/src/uts/common/sys/crtctl.h
/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License, Version 1.0 only
 * (the "License").  You may not use this file except in compliance
 * with the License.
 *
 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 * or http://www.opensolaris.org/os/licensing.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 * If applicable, add the following below this CDDL HEADER, with the
 * fields enclosed by brackets "[]" replaced with your own identifying
 * information: Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 */
/*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/*        All Rights Reserved   */


#ifndef _SYS_CRTCTL_H
#define _SYS_CRTCTL_H

#ifdef  __cplusplus
extern "C" {
#endif

/*
 *      Define the cursor control codes
 */
#define ESC     033     /* Escape for command */

/* Commands */
#define CUP     0101    /* Cursor up */
#define CDN     0102    /* Cursor down */
#define CRI     0103    /* Cursor right */
#define CLE     0104    /* Cursor left */
#define NL      0134    /* Terminal newline function */
#define HOME    0105    /* Cursor home */
#define VHOME   0106    /* cursor home to variable portion */
#define LCA     0107    /* Load cursor, followed by (x,y) in (col,row) */
#define CRTN    0133    /* Return cursor to beginning of line */

#define STB     0110    /* Start blink */
#define SPB     0111    /* Stop blink */
#define CS      0112    /* Clear Screen */
#define CM      0135    /* Clear Memory */
#define EEOL    0113    /* Erase to end of line */
#define EEOP    0114    /* Erase to end of page */
#define DC      0115    /* Delete character */
#define DL      0116    /* Delete line */
#define IC      0117    /* Insert character */
#define IL      0120    /* Insert line */
#define KBL     0121    /* keyboard lock */
#define KBU     0122    /* keyboard unlock */
#define ATAB    0123    /* Set column of tabs */
#define STAB    0124    /* Set single tab */
#define CTAB    0125    /* Clear Tabs */
#define USCRL   0126    /* Scroll up one line */
#define DSCRL   0127    /* Scroll down one line */
#define ASEG    0130    /* Advance segment */
#define BPRT    0131    /* Begin protect */
#define EPRT    0132    /* End   protect */

#define SVSCN   0136    /* Define variable portion of screen (OS only) */
#define UVSCN   0137    /* Scroll Up variable portion of screen */
#define DVSCN   0140    /* Scroll Down variable portion of screen */

#define SVID    0141    /* Set Video Attributes */
#define CVID    0142    /* Clear Video Attributes */
#define DVID    0143    /* Define Video Attributes */
/* Video Attribute Definitions */
#define VID_NORM        000     /* normal */
#define VID_UL          001     /* underline */
#define VID_BLNK        002     /* blink */
#define VID_REV 004     /* reverse video */
#define VID_DIM 010     /* dim intensity */
#define VID_BOLD        020     /* bright intensity */
#define VID_OFF 040     /* blank out field */

#define BRK     000     /* transmit break */
#define HIQ     001     /* Put remainder of write on high priority queue. */

#ifdef  __cplusplus
}
#endif

#endif  /* _SYS_CRTCTL_H */