xref: /onnv-gate/usr/src/cmd/tip/vars.c (revision 549:9e644232f978)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
30Sstevel@tonic-gate  * Use is subject to license terms.
40Sstevel@tonic-gate  */
5*549Smuffin 
60Sstevel@tonic-gate /*
70Sstevel@tonic-gate  * Copyright (c) 1983 Regents of the University of California.
80Sstevel@tonic-gate  * All rights reserved. The Berkeley software License Agreement
90Sstevel@tonic-gate  * specifies the terms and conditions for redistribution.
100Sstevel@tonic-gate  */
11*549Smuffin 
12*549Smuffin #pragma ident	"%Z%%M%	%I%	%E% SMI"
130Sstevel@tonic-gate 
140Sstevel@tonic-gate #include "tip.h"
150Sstevel@tonic-gate 
160Sstevel@tonic-gate /*
170Sstevel@tonic-gate  * Definition of variables
180Sstevel@tonic-gate  */
190Sstevel@tonic-gate value_t vtable[] = {
200Sstevel@tonic-gate 	{ "beautify",	BOOL,			(READ|WRITE)<<PUBLIC,
210Sstevel@tonic-gate 	    "be",	(char *)TRUE },
220Sstevel@tonic-gate 	{ "baudrate",	NUMBER|IREMOTE|INIT,	(READ<<PUBLIC)|(WRITE<<ROOT),
230Sstevel@tonic-gate 	    "ba",	(char *)&BR },
240Sstevel@tonic-gate 	{ "dialtimeout", NUMBER,		(READ<<PUBLIC)|(WRITE<<ROOT),
250Sstevel@tonic-gate 	    "dial",	(char *)60 },
260Sstevel@tonic-gate 	{ "eofread",	STRING|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
270Sstevel@tonic-gate 	    "eofr",	(char *)&IE },
280Sstevel@tonic-gate 	{ "eofwrite",	STRING|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
290Sstevel@tonic-gate 	    "eofw",	(char *)&OE },
300Sstevel@tonic-gate 	{ "eol",	STRING|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
310Sstevel@tonic-gate 	    NOSTR,	(char *)&EL },
320Sstevel@tonic-gate 	{ "escape",	CHAR,			(READ|WRITE)<<PUBLIC,
330Sstevel@tonic-gate 	    "es",	(char *)'~' },
340Sstevel@tonic-gate 	{ "exceptions",	STRING|INIT|IREMOTE,	(READ|WRITE)<<PUBLIC,
350Sstevel@tonic-gate 	    "ex",	(char *)&EX },
360Sstevel@tonic-gate 	{ "force",	CHAR,			(READ|WRITE)<<PUBLIC,
370Sstevel@tonic-gate 	    "fo",	(char *)0377 },
380Sstevel@tonic-gate 	{ "framesize",	NUMBER|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
390Sstevel@tonic-gate 	    "fr",	(char *)&FS },
400Sstevel@tonic-gate 	{ "host",	STRING|IREMOTE|INIT,	READ<<PUBLIC,
410Sstevel@tonic-gate 	    "ho",	(char *)&HO },
420Sstevel@tonic-gate 	{ "log",	STRING|INIT,		(READ|WRITE)<<ROOT,
430Sstevel@tonic-gate 	    NOSTR,	"/var/adm/aculog" },
440Sstevel@tonic-gate 	{ "phones",	STRING|INIT|IREMOTE,	READ<<PUBLIC,
450Sstevel@tonic-gate 	    NOSTR,	(char *)&PH },
460Sstevel@tonic-gate 	{ "prompt",	CHAR,			(READ|WRITE)<<PUBLIC,
470Sstevel@tonic-gate 	    "pr",	(char *)'\n' },
480Sstevel@tonic-gate 	{ "raise",	BOOL,			(READ|WRITE)<<PUBLIC,
490Sstevel@tonic-gate 	    "ra",	(char *)FALSE },
500Sstevel@tonic-gate 	{ "raisechar",	CHAR,			(READ|WRITE)<<PUBLIC,
510Sstevel@tonic-gate 	    "rc",	(char *)0377 },
520Sstevel@tonic-gate 	{ "record",	STRING|INIT|IREMOTE,	(READ|WRITE)<<PUBLIC,
530Sstevel@tonic-gate 	    "rec",	(char *)&RE },
540Sstevel@tonic-gate 	{ "remote",	STRING|INIT|IREMOTE,	READ<<PUBLIC,
550Sstevel@tonic-gate 	    NOSTR,	(char *)&RM },
560Sstevel@tonic-gate 	{ "script",	BOOL,			(READ|WRITE)<<PUBLIC,
570Sstevel@tonic-gate 	    "sc",	(char *)FALSE },
580Sstevel@tonic-gate 	{ "tabexpand",	BOOL,			(READ|WRITE)<<PUBLIC,
590Sstevel@tonic-gate 	    "tab",	(char *)FALSE },
600Sstevel@tonic-gate 	{ "verbose",	BOOL,			(READ|WRITE)<<PUBLIC,
610Sstevel@tonic-gate 	    "verb",	(char *)TRUE },
620Sstevel@tonic-gate 	{ "SHELL",	STRING|ENVIRON|INIT,	(READ|WRITE)<<PUBLIC,
630Sstevel@tonic-gate 	    NULL,	"/bin/sh" },
640Sstevel@tonic-gate 	{ "HOME",	STRING|ENVIRON,		(READ|WRITE)<<PUBLIC,
650Sstevel@tonic-gate 	    NOSTR,	NOSTR },
660Sstevel@tonic-gate 	{ "echocheck",	BOOL,			(READ|WRITE)<<PUBLIC,
670Sstevel@tonic-gate 	    "ec",	(char *)FALSE },
680Sstevel@tonic-gate 	{ "disconnect",	STRING|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
690Sstevel@tonic-gate 	    "di",	(char *)&DI },
700Sstevel@tonic-gate 	{ "tandem",	BOOL,			(READ|WRITE)<<PUBLIC,
710Sstevel@tonic-gate 	    "ta",	(char *)TRUE },
720Sstevel@tonic-gate 	{ "linedelay",	NUMBER|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
730Sstevel@tonic-gate 	    "ldelay",	(char *)&DL },
740Sstevel@tonic-gate 	{ "chardelay",	NUMBER|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
750Sstevel@tonic-gate 	    "cdelay",	(char *)&CL },
760Sstevel@tonic-gate 	{ "etimeout",	NUMBER|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
770Sstevel@tonic-gate 	    "et",	(char *)&ET },
780Sstevel@tonic-gate 	{ "rawftp",	BOOL,			(READ|WRITE)<<PUBLIC,
790Sstevel@tonic-gate 	    "raw",	(char *)FALSE },
800Sstevel@tonic-gate 	{ "halfduplex",	BOOL,			(READ|WRITE)<<PUBLIC,
810Sstevel@tonic-gate 	    "hdx",	(char *)FALSE },
820Sstevel@tonic-gate 	{ "localecho",	BOOL,			(READ|WRITE)<<PUBLIC,
830Sstevel@tonic-gate 	    "le",	(char *)FALSE },
840Sstevel@tonic-gate 	{ "parity",	STRING|INIT|IREMOTE,	(READ|WRITE)<<PUBLIC,
850Sstevel@tonic-gate 	    "par",	(char *)&PA },
860Sstevel@tonic-gate 	{ "hardwareflow", BOOL,			(READ|WRITE)<<PUBLIC,
870Sstevel@tonic-gate 	    "hf",	(char *)FALSE },
880Sstevel@tonic-gate 	{ NOSTR, NULL, NULL, NOSTR, NOSTR }
890Sstevel@tonic-gate };
90