xref: /illumos-gate/usr/src/cmd/vntsd/chars.h (revision 41c9e69b)
11ae08745Sheppo 
21ae08745Sheppo /*
31ae08745Sheppo  * CDDL HEADER START
41ae08745Sheppo  *
51ae08745Sheppo  * The contents of this file are subject to the terms of the
61ae08745Sheppo  * Common Development and Distribution License (the "License").
71ae08745Sheppo  * You may not use this file except in compliance with the License.
81ae08745Sheppo  *
91ae08745Sheppo  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
101ae08745Sheppo  * or http://www.opensolaris.org/os/licensing.
111ae08745Sheppo  * See the License for the specific language governing permissions
121ae08745Sheppo  * and limitations under the License.
131ae08745Sheppo  *
141ae08745Sheppo  * When distributing Covered Code, include this CDDL HEADER in each
151ae08745Sheppo  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
161ae08745Sheppo  * If applicable, add the following below this CDDL HEADER, with the
171ae08745Sheppo  * fields enclosed by brackets "[]" replaced with your own identifying
181ae08745Sheppo  * information: Portions Copyright [yyyy] [name of copyright owner]
191ae08745Sheppo  *
201ae08745Sheppo  * CDDL HEADER END
211ae08745Sheppo  */
221ae08745Sheppo /*
23*41c9e69bSZach Kissel  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
241ae08745Sheppo  * Use is subject to license terms.
251ae08745Sheppo  */
261ae08745Sheppo 
271ae08745Sheppo #ifndef _CHARS_H
281ae08745Sheppo #define	_CHARS_H
291ae08745Sheppo 
301ae08745Sheppo #ifdef __cplusplus
311ae08745Sheppo extern "C" {
321ae08745Sheppo #endif
331ae08745Sheppo 
34*41c9e69bSZach Kissel #define	CNTRL(c) ((c)&0x37)
35*41c9e69bSZach Kissel 
361ae08745Sheppo #define	    CR	    13
371ae08745Sheppo #define	    LF	    10
381ae08745Sheppo 
391ae08745Sheppo 
401ae08745Sheppo /* telnet protocol command support */
411ae08745Sheppo #define	    BEL	    7	    /* not support */
421ae08745Sheppo #define	    BS	    8	    /* supported */
431ae08745Sheppo #define	    HT	    9	    /* eoln */
441ae08745Sheppo #define	    VT	    11	    /* not support */
451ae08745Sheppo #define	    FF	    12	    /* not support */
467636cb21Slm #define	    STOP    19
477636cb21Slm #define	    START   17
481ae08745Sheppo 
491ae08745Sheppo #define	    SE	    240	    /* end of subnegotiation params */
501ae08745Sheppo #define	    NOP	    241
511ae08745Sheppo #define	    DM	    242	    /* Data Mark not support */
521ae08745Sheppo #define	    BRK	    243	    /* termial support  */
531ae08745Sheppo #define	    IP	    244	    /* control-C */
541ae08745Sheppo #define	    AO	    245	    /* abort output  not support */
551ae08745Sheppo #define	    AYT	    246	    /* Are you there */
561ae08745Sheppo #define	    EC	    247	    /* Erase character - not support */
571ae08745Sheppo #define	    EL	    248	    /* Erase line   - not support */
581ae08745Sheppo #define	    GA	    249	    /* Go ahead. */
591ae08745Sheppo #define	    SB	    250	    /* Subnegotiation of the indicated option */
601ae08745Sheppo #define	    WILL    251	    /* will do */
611ae08745Sheppo #define	    WONT    252	    /* refuse */
621ae08745Sheppo #define	    DO	    253	    /* request do */
631ae08745Sheppo #define	    DONT    254	    /* request do not do */
641ae08745Sheppo #define	    IAC	    255	    /* command */
651ae08745Sheppo 
661ae08745Sheppo 
671ae08745Sheppo 
681ae08745Sheppo /* telnet options */
691ae08745Sheppo 
701ae08745Sheppo #define	    TEL_ECHO	1
711ae08745Sheppo #define	    SUPRESS	3
721ae08745Sheppo #define	    STATUS	5
731ae08745Sheppo #define	    TM		6	/* timing mark - not supported */
741ae08745Sheppo #define	    TERM_TYPE	24	/* Terminal type -not supported */
751ae08745Sheppo #define	    WIN_SIZE	31	/*  window size - not supported */
761ae08745Sheppo #define	    TERM_SP	32	/* terminal speed - not supported */
771ae08745Sheppo #define	    FC		33	/* remote flow control - not supported */
781ae08745Sheppo #define	    LINEMODE	34	/* line mode */
791ae08745Sheppo #define	    ENV		36	/* environment variables */
801ae08745Sheppo 
811ae08745Sheppo #define	    VNTSD_DAEMON_CMD	'~'
821ae08745Sheppo 
831ae08745Sheppo #ifdef __cplusplus
841ae08745Sheppo }
851ae08745Sheppo #endif
861ae08745Sheppo 
871ae08745Sheppo #endif /* _CHARS_H */
88