xref: /titanic_52/usr/src/cmd/vntsd/chars.h (revision 1ae0874509b6811fdde1dfd46f0d93fd09867a3f)
1*1ae08745Sheppo 
2*1ae08745Sheppo /*
3*1ae08745Sheppo  * CDDL HEADER START
4*1ae08745Sheppo  *
5*1ae08745Sheppo  * The contents of this file are subject to the terms of the
6*1ae08745Sheppo  * Common Development and Distribution License (the "License").
7*1ae08745Sheppo  * You may not use this file except in compliance with the License.
8*1ae08745Sheppo  *
9*1ae08745Sheppo  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*1ae08745Sheppo  * or http://www.opensolaris.org/os/licensing.
11*1ae08745Sheppo  * See the License for the specific language governing permissions
12*1ae08745Sheppo  * and limitations under the License.
13*1ae08745Sheppo  *
14*1ae08745Sheppo  * When distributing Covered Code, include this CDDL HEADER in each
15*1ae08745Sheppo  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*1ae08745Sheppo  * If applicable, add the following below this CDDL HEADER, with the
17*1ae08745Sheppo  * fields enclosed by brackets "[]" replaced with your own identifying
18*1ae08745Sheppo  * information: Portions Copyright [yyyy] [name of copyright owner]
19*1ae08745Sheppo  *
20*1ae08745Sheppo  * CDDL HEADER END
21*1ae08745Sheppo  */
22*1ae08745Sheppo /*
23*1ae08745Sheppo  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*1ae08745Sheppo  * Use is subject to license terms.
25*1ae08745Sheppo  */
26*1ae08745Sheppo 
27*1ae08745Sheppo #ifndef _CHARS_H
28*1ae08745Sheppo #define	_CHARS_H
29*1ae08745Sheppo 
30*1ae08745Sheppo #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*1ae08745Sheppo 
32*1ae08745Sheppo #ifdef __cplusplus
33*1ae08745Sheppo extern "C" {
34*1ae08745Sheppo #endif
35*1ae08745Sheppo 
36*1ae08745Sheppo #define	    CR	    13
37*1ae08745Sheppo #define	    LF	    10
38*1ae08745Sheppo 
39*1ae08745Sheppo 
40*1ae08745Sheppo /* telnet protocol command support */
41*1ae08745Sheppo #define	    BEL	    7	    /* not support */
42*1ae08745Sheppo #define	    BS	    8	    /* supported */
43*1ae08745Sheppo #define	    HT	    9	    /* eoln */
44*1ae08745Sheppo #define	    VT	    11	    /* not support */
45*1ae08745Sheppo #define	    FF	    12	    /* not support */
46*1ae08745Sheppo #define	    STOP    18
47*1ae08745Sheppo #define	    START   19
48*1ae08745Sheppo 
49*1ae08745Sheppo #define	    SE	    240	    /* end of subnegotiation params */
50*1ae08745Sheppo #define	    NOP	    241
51*1ae08745Sheppo #define	    DM	    242	    /* Data Mark not support */
52*1ae08745Sheppo #define	    BRK	    243	    /* termial support  */
53*1ae08745Sheppo #define	    IP	    244	    /* control-C */
54*1ae08745Sheppo #define	    AO	    245	    /* abort output  not support */
55*1ae08745Sheppo #define	    AYT	    246	    /* Are you there */
56*1ae08745Sheppo #define	    EC	    247	    /* Erase character - not support */
57*1ae08745Sheppo #define	    EL	    248	    /* Erase line   - not support */
58*1ae08745Sheppo #define	    GA	    249	    /* Go ahead. */
59*1ae08745Sheppo #define	    SB	    250	    /* Subnegotiation of the indicated option */
60*1ae08745Sheppo #define	    WILL    251	    /* will do */
61*1ae08745Sheppo #define	    WONT    252	    /* refuse */
62*1ae08745Sheppo #define	    DO	    253	    /* request do */
63*1ae08745Sheppo #define	    DONT    254	    /* request do not do */
64*1ae08745Sheppo #define	    IAC	    255	    /* command */
65*1ae08745Sheppo 
66*1ae08745Sheppo 
67*1ae08745Sheppo 
68*1ae08745Sheppo /* telnet options */
69*1ae08745Sheppo 
70*1ae08745Sheppo #define	    TEL_ECHO	1
71*1ae08745Sheppo #define	    SUPRESS	3
72*1ae08745Sheppo #define	    STATUS	5
73*1ae08745Sheppo #define	    TM		6	/* timing mark - not supported */
74*1ae08745Sheppo #define	    TERM_TYPE	24	/* Terminal type -not supported */
75*1ae08745Sheppo #define	    WIN_SIZE	31	/*  window size - not supported */
76*1ae08745Sheppo #define	    TERM_SP	32	/* terminal speed - not supported */
77*1ae08745Sheppo #define	    FC		33	/* remote flow control - not supported */
78*1ae08745Sheppo #define	    LINEMODE	34	/* line mode */
79*1ae08745Sheppo #define	    ENV		36	/* environment variables */
80*1ae08745Sheppo 
81*1ae08745Sheppo #define	    VNTSD_DAEMON_CMD	'~'
82*1ae08745Sheppo 
83*1ae08745Sheppo #ifdef __cplusplus
84*1ae08745Sheppo }
85*1ae08745Sheppo #endif
86*1ae08745Sheppo 
87*1ae08745Sheppo #endif /* _CHARS_H */
88