17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 57c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 67c478bd9Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 77c478bd9Sstevel@tonic-gate * with the License. 87c478bd9Sstevel@tonic-gate * 97c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 107c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 117c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 127c478bd9Sstevel@tonic-gate * and limitations under the License. 137c478bd9Sstevel@tonic-gate * 147c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 157c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 167c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 177c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 187c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 197c478bd9Sstevel@tonic-gate * 207c478bd9Sstevel@tonic-gate * CDDL HEADER END 217c478bd9Sstevel@tonic-gate */ 227c478bd9Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 23*b4203d75SMarcel Telka /* All Rights Reserved */ 247c478bd9Sstevel@tonic-gate 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gate #ifndef _SYS_CRTCTL_H 277c478bd9Sstevel@tonic-gate #define _SYS_CRTCTL_H 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate #ifdef __cplusplus 307c478bd9Sstevel@tonic-gate extern "C" { 317c478bd9Sstevel@tonic-gate #endif 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gate /* 347c478bd9Sstevel@tonic-gate * Define the cursor control codes 357c478bd9Sstevel@tonic-gate */ 367c478bd9Sstevel@tonic-gate #define ESC 033 /* Escape for command */ 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gate /* Commands */ 397c478bd9Sstevel@tonic-gate #define CUP 0101 /* Cursor up */ 407c478bd9Sstevel@tonic-gate #define CDN 0102 /* Cursor down */ 417c478bd9Sstevel@tonic-gate #define CRI 0103 /* Cursor right */ 427c478bd9Sstevel@tonic-gate #define CLE 0104 /* Cursor left */ 437c478bd9Sstevel@tonic-gate #define NL 0134 /* Terminal newline function */ 447c478bd9Sstevel@tonic-gate #define HOME 0105 /* Cursor home */ 457c478bd9Sstevel@tonic-gate #define VHOME 0106 /* cursor home to variable portion */ 467c478bd9Sstevel@tonic-gate #define LCA 0107 /* Load cursor, followed by (x,y) in (col,row) */ 477c478bd9Sstevel@tonic-gate #define CRTN 0133 /* Return cursor to beginning of line */ 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gate #define STB 0110 /* Start blink */ 507c478bd9Sstevel@tonic-gate #define SPB 0111 /* Stop blink */ 517c478bd9Sstevel@tonic-gate #define CS 0112 /* Clear Screen */ 527c478bd9Sstevel@tonic-gate #define CM 0135 /* Clear Memory */ 537c478bd9Sstevel@tonic-gate #define EEOL 0113 /* Erase to end of line */ 547c478bd9Sstevel@tonic-gate #define EEOP 0114 /* Erase to end of page */ 557c478bd9Sstevel@tonic-gate #define DC 0115 /* Delete character */ 567c478bd9Sstevel@tonic-gate #define DL 0116 /* Delete line */ 577c478bd9Sstevel@tonic-gate #define IC 0117 /* Insert character */ 587c478bd9Sstevel@tonic-gate #define IL 0120 /* Insert line */ 597c478bd9Sstevel@tonic-gate #define KBL 0121 /* keyboard lock */ 607c478bd9Sstevel@tonic-gate #define KBU 0122 /* keyboard unlock */ 617c478bd9Sstevel@tonic-gate #define ATAB 0123 /* Set column of tabs */ 627c478bd9Sstevel@tonic-gate #define STAB 0124 /* Set single tab */ 637c478bd9Sstevel@tonic-gate #define CTAB 0125 /* Clear Tabs */ 647c478bd9Sstevel@tonic-gate #define USCRL 0126 /* Scroll up one line */ 657c478bd9Sstevel@tonic-gate #define DSCRL 0127 /* Scroll down one line */ 667c478bd9Sstevel@tonic-gate #define ASEG 0130 /* Advance segment */ 677c478bd9Sstevel@tonic-gate #define BPRT 0131 /* Begin protect */ 687c478bd9Sstevel@tonic-gate #define EPRT 0132 /* End protect */ 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gate #define SVSCN 0136 /* Define variable portion of screen (OS only) */ 717c478bd9Sstevel@tonic-gate #define UVSCN 0137 /* Scroll Up variable portion of screen */ 727c478bd9Sstevel@tonic-gate #define DVSCN 0140 /* Scroll Down variable portion of screen */ 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gate #define SVID 0141 /* Set Video Attributes */ 757c478bd9Sstevel@tonic-gate #define CVID 0142 /* Clear Video Attributes */ 767c478bd9Sstevel@tonic-gate #define DVID 0143 /* Define Video Attributes */ 777c478bd9Sstevel@tonic-gate /* Video Attribute Definitions */ 787c478bd9Sstevel@tonic-gate #define VID_NORM 000 /* normal */ 797c478bd9Sstevel@tonic-gate #define VID_UL 001 /* underline */ 807c478bd9Sstevel@tonic-gate #define VID_BLNK 002 /* blink */ 817c478bd9Sstevel@tonic-gate #define VID_REV 004 /* reverse video */ 827c478bd9Sstevel@tonic-gate #define VID_DIM 010 /* dim intensity */ 837c478bd9Sstevel@tonic-gate #define VID_BOLD 020 /* bright intensity */ 847c478bd9Sstevel@tonic-gate #define VID_OFF 040 /* blank out field */ 857c478bd9Sstevel@tonic-gate 867c478bd9Sstevel@tonic-gate #define BRK 000 /* transmit break */ 877c478bd9Sstevel@tonic-gate #define HIQ 001 /* Put remainder of write on high priority queue. */ 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gate #ifdef __cplusplus 907c478bd9Sstevel@tonic-gate } 917c478bd9Sstevel@tonic-gate #endif 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gate #endif /* _SYS_CRTCTL_H */ 94