Annotation of src/usr.bin/tip/vars.c, Revision 1.17
1.17 ! nicm 1: /* $OpenBSD: vars.c,v 1.16 2010/06/30 00:26:49 nicm Exp $ */
1.1 deraadt 2: /* $NetBSD: vars.c,v 1.3 1994/12/08 09:31:19 jtc Exp $ */
3:
4: /*
5: * Copyright (c) 1983, 1993
6: * The Regents of the University of California. All rights reserved.
7: *
8: * Redistribution and use in source and binary forms, with or without
9: * modification, are permitted provided that the following conditions
10: * are met:
11: * 1. Redistributions of source code must retain the above copyright
12: * notice, this list of conditions and the following disclaimer.
13: * 2. Redistributions in binary form must reproduce the above copyright
14: * notice, this list of conditions and the following disclaimer in the
15: * documentation and/or other materials provided with the distribution.
1.4 millert 16: * 3. Neither the name of the University nor the names of its contributors
1.1 deraadt 17: * may be used to endorse or promote products derived from this software
18: * without specific prior written permission.
19: *
20: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30: * SUCH DAMAGE.
31: */
32:
33: #include "tip.h"
34: #include "pathnames.h"
35:
36: /*
37: * Definition of variables
38: */
39: value_t vtable[] = {
1.13 nicm 40: { "beautify", V_BOOL,
1.17 ! nicm 41: "be", NULL, 1 },
1.14 nicm 42: { "baudrate", V_NUMBER|V_INIT,
1.17 ! nicm 43: "ba", NULL, 0 },
1.15 nicm 44: { "connect", V_STRING|V_INIT|V_READONLY,
1.17 ! nicm 45: "cm", NULL, 0 },
1.15 nicm 46: { "device", V_STRING|V_INIT|V_READONLY,
1.17 ! nicm 47: "dv", NULL, 0 },
1.14 nicm 48: { "eofread", V_STRING|V_INIT,
1.17 ! nicm 49: "eofr", NULL, 0 },
1.14 nicm 50: { "eofwrite", V_STRING|V_INIT,
1.17 ! nicm 51: "eofw", NULL, 0 },
1.14 nicm 52: { "eol", V_STRING|V_INIT,
1.17 ! nicm 53: NULL, NULL, 0 },
1.13 nicm 54: { "escape", V_CHAR,
1.17 ! nicm 55: "es", NULL, '~' },
1.14 nicm 56: { "exceptions", V_STRING|V_INIT,
1.17 ! nicm 57: "ex", NULL, 0 },
1.13 nicm 58: { "force", V_CHAR,
1.17 ! nicm 59: "fo", NULL, CTRL('p') },
1.14 nicm 60: { "framesize", V_NUMBER|V_INIT,
1.17 ! nicm 61: "fr", NULL, 0 },
1.14 nicm 62: { "host", V_STRING|V_INIT|V_READONLY,
1.17 ! nicm 63: "ho", NULL, 0 },
1.13 nicm 64: { "log", V_STRING|V_INIT,
1.17 ! nicm 65: NULL, _PATH_ACULOG, 0 },
1.13 nicm 66: { "prompt", V_CHAR,
1.17 ! nicm 67: "pr", NULL, '\n' },
1.13 nicm 68: { "raise", V_BOOL,
1.17 ! nicm 69: "ra", NULL, 0 },
1.13 nicm 70: { "raisechar", V_CHAR,
1.17 ! nicm 71: "rc", NULL, 0 },
1.14 nicm 72: { "record", V_STRING|V_INIT,
1.17 ! nicm 73: "rec", NULL, 0 },
1.14 nicm 74: { "remote", V_STRING|V_INIT|V_READONLY,
1.17 ! nicm 75: NULL, NULL, 0 },
1.13 nicm 76: { "script", V_BOOL,
1.17 ! nicm 77: "sc", NULL, 0 },
1.13 nicm 78: { "tabexpand", V_BOOL,
1.17 ! nicm 79: "tab", NULL, 0 },
1.13 nicm 80: { "verbose", V_BOOL,
1.17 ! nicm 81: "verb", NULL, 1 },
1.16 nicm 82: { "SHELL", V_STRING|V_INIT,
1.17 ! nicm 83: NULL, _PATH_BSHELL, 0 },
1.16 nicm 84: { "HOME", V_STRING|V_INIT,
1.17 ! nicm 85: NULL, NULL, 0 },
1.13 nicm 86: { "echocheck", V_BOOL,
1.17 ! nicm 87: "ec", NULL, 0 },
1.14 nicm 88: { "disconnect", V_STRING|V_INIT,
1.17 ! nicm 89: "di", NULL, 0 },
1.13 nicm 90: { "tandem", V_BOOL,
1.17 ! nicm 91: "ta", NULL, 1 },
1.14 nicm 92: { "linedelay", V_NUMBER|V_INIT,
1.17 ! nicm 93: "ldelay", NULL, 0 },
1.14 nicm 94: { "chardelay", V_NUMBER|V_INIT,
1.17 ! nicm 95: "cdelay", NULL, 0 },
1.14 nicm 96: { "etimeout", V_NUMBER|V_INIT,
1.17 ! nicm 97: "et", NULL, 0 },
1.13 nicm 98: { "rawftp", V_BOOL,
1.17 ! nicm 99: "raw", NULL, 0 },
1.13 nicm 100: { "halfduplex", V_BOOL,
1.17 ! nicm 101: "hdx", NULL, 0 },
1.13 nicm 102: { "localecho", V_BOOL,
1.17 ! nicm 103: "le", NULL, 0 },
1.14 nicm 104: { "parity", V_STRING|V_INIT,
1.17 ! nicm 105: "par", NULL, 0 },
1.13 nicm 106: { "hardwareflow", V_BOOL,
1.17 ! nicm 107: "hf", NULL, 0 },
1.14 nicm 108: { "linedisc", V_NUMBER|V_INIT,
1.17 ! nicm 109: "ld", NULL, 0 },
1.13 nicm 110: { "direct", V_BOOL,
1.17 ! nicm 111: "dc", NULL, 0 },
1.13 nicm 112: { NULL, 0,
1.17 ! nicm 113: NULL, NULL, 0 }
1.1 deraadt 114: };