[BACK]Return to vars.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tip

Annotation of src/usr.bin/tip/vars.c, Revision 1.13

1.13    ! nicm        1: /*     $OpenBSD: vars.c,v 1.12 2010/06/29 20:57:33 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,
        !            41:          "be",         (char *)1 },
        !            42:        { "baudrate",   V_NUMBER|V_IREMOTE|V_INIT,
1.1       deraadt    43:          "ba",         (char *)&BR },
1.13    ! nicm       44:        { "eofread",    V_STRING|V_IREMOTE|V_INIT,
1.1       deraadt    45:          "eofr",       (char *)&IE },
1.13    ! nicm       46:        { "eofwrite",   V_STRING|V_IREMOTE|V_INIT,
1.1       deraadt    47:          "eofw",       (char *)&OE },
1.13    ! nicm       48:        { "eol",        V_STRING|V_IREMOTE|V_INIT,
1.9       moritz     49:          NULL,         (char *)&EL },
1.13    ! nicm       50:        { "escape",     V_CHAR,
1.1       deraadt    51:          "es",         (char *)'~' },
1.13    ! nicm       52:        { "exceptions", V_STRING|V_INIT|V_IREMOTE,
1.1       deraadt    53:          "ex",         (char *)&EX },
1.13    ! nicm       54:        { "force",      V_CHAR,
1.1       deraadt    55:          "fo",         (char *)CTRL('p') },
1.13    ! nicm       56:        { "framesize",  V_NUMBER|V_IREMOTE|V_INIT,
1.1       deraadt    57:          "fr",         (char *)&FS },
1.13    ! nicm       58:        { "host",       V_STRING|V_IREMOTE|V_INIT|V_READONLY,
1.1       deraadt    59:          "ho",         (char *)&HO },
1.13    ! nicm       60:        { "log",        V_STRING|V_INIT,
1.9       moritz     61:          NULL,         _PATH_ACULOG },
1.13    ! nicm       62:        { "prompt",     V_CHAR,
1.1       deraadt    63:          "pr",         (char *)'\n' },
1.13    ! nicm       64:        { "raise",      V_BOOL,
        !            65:          "ra",         (char *)0 },
        !            66:        { "raisechar",  V_CHAR,
1.9       moritz     67:          "rc",         NULL },
1.13    ! nicm       68:        { "record",     V_STRING|V_INIT|V_IREMOTE,
1.1       deraadt    69:          "rec",        (char *)&RE },
1.13    ! nicm       70:        { "remote",     V_STRING|V_INIT|V_IREMOTE|V_READONLY,
1.9       moritz     71:          NULL,         (char *)&RM },
1.13    ! nicm       72:        { "script",     V_BOOL,
        !            73:          "sc",         (char *)0 },
        !            74:        { "tabexpand",  V_BOOL,
        !            75:          "tab",        (char *)0 },
        !            76:        { "verbose",    V_BOOL,
        !            77:          "verb",       (char *)1 },
        !            78:        { "SHELL",      V_STRING|V_ENVIRON|V_INIT,
1.1       deraadt    79:          NULL,         _PATH_BSHELL },
1.13    ! nicm       80:        { "HOME",       V_STRING|V_ENVIRON,
1.9       moritz     81:          NULL,         NULL },
1.13    ! nicm       82:        { "echocheck",  V_BOOL,
        !            83:          "ec",         (char *)0 },
        !            84:        { "disconnect", V_STRING|V_IREMOTE|V_INIT,
1.1       deraadt    85:          "di",         (char *)&DI },
1.13    ! nicm       86:        { "tandem",     V_BOOL,
        !            87:          "ta",         (char *)1 },
        !            88:        { "linedelay",  V_NUMBER|V_IREMOTE|V_INIT,
1.1       deraadt    89:          "ldelay",     (char *)&DL },
1.13    ! nicm       90:        { "chardelay",  V_NUMBER|V_IREMOTE|V_INIT,
1.1       deraadt    91:          "cdelay",     (char *)&CL },
1.13    ! nicm       92:        { "etimeout",   V_NUMBER|V_IREMOTE|V_INIT,
1.1       deraadt    93:          "et",         (char *)&ET },
1.13    ! nicm       94:        { "rawftp",     V_BOOL,
        !            95:          "raw",        (char *)0 },
        !            96:        { "halfduplex", V_BOOL,
        !            97:          "hdx",        (char *)0 },
        !            98:        { "localecho",  V_BOOL,
        !            99:          "le",         (char *)0 },
        !           100:        { "parity",     V_STRING|V_INIT|V_IREMOTE,
1.1       deraadt   101:          "par",        (char *)&PA },
1.13    ! nicm      102:        { "hardwareflow", V_BOOL,
        !           103:          "hf",         (char *)0 },
        !           104:        { "linedisc",   V_NUMBER|V_IREMOTE|V_INIT,
1.7       deraadt   105:          "ld",         (char *)&LD },
1.13    ! nicm      106:        { "direct",     V_BOOL,
        !           107:          "dc",         (char *)0 },
        !           108:        { NULL,         0,
        !           109:          NULL,         NULL }
1.1       deraadt   110: };