date and time created 88/12/14 16:21:45 by marc
[unix-history] / usr / src / usr.bin / tip / vars.c
CommitLineData
051b1e55 1/*
c9686c12
KB
2 * Copyright (c) 1983 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms are permitted
6 * provided that the above copyright notice and this paragraph are
7 * duplicated in all such forms and that any documentation,
8 * advertising materials, and other materials related to such
9 * distribution and use acknowledge that the software was developed
10 * by the University of California, Berkeley. The name of the
11 * University may not be used to endorse or promote products derived
12 * from this software without specific prior written permission.
13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
051b1e55
DF
16 */
17
05862919 18#ifndef lint
c9686c12
KB
19static char sccsid[] = "@(#)vars.c 5.3 (Berkeley) %G%";
20#endif /* not lint */
05862919 21
55c8084d
BJ
22#include "tip.h"
23
24/*
25 * Definition of variables
26 */
27value_t vtable[] = {
28 { "beautify", BOOL, (READ|WRITE)<<PUBLIC,
29 "be", (char *)TRUE },
30 { "baudrate", NUMBER|IREMOTE|INIT, (READ<<PUBLIC)|(WRITE<<ROOT),
31 "ba", (char *)&BR },
32 { "dialtimeout",NUMBER, (READ<<PUBLIC)|(WRITE<<ROOT),
33 "dial", (char *)60 },
34 { "eofread", STRING|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
35 "eofr", (char *)&IE },
6b46907f 36 { "eofwrite", STRING|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
55c8084d
BJ
37 "eofw", (char *)&OE },
38 { "eol", STRING|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
39 NOSTR, (char *)&EL },
40 { "escape", CHAR, (READ|WRITE)<<PUBLIC,
41 "es", (char *)'~' },
6b46907f
RC
42 { "exceptions", STRING|INIT|IREMOTE, (READ|WRITE)<<PUBLIC,
43 "ex", (char *)&EX },
55c8084d 44 { "force", CHAR, (READ|WRITE)<<PUBLIC,
3cd1a53c 45 "fo", (char *)CTRL('p') },
55c8084d
BJ
46 { "framesize", NUMBER|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
47 "fr", (char *)&FS },
48 { "host", STRING|IREMOTE|INIT, READ<<PUBLIC,
49 "ho", (char *)&HO },
55c8084d
BJ
50 { "log", STRING|INIT, (READ|WRITE)<<ROOT,
51 NOSTR, "/usr/adm/aculog" },
55c8084d
BJ
52 { "phones", STRING|INIT|IREMOTE, READ<<PUBLIC,
53 NOSTR, (char *)&PH },
6b46907f 54 { "prompt", CHAR, (READ|WRITE)<<PUBLIC,
55c8084d
BJ
55 "pr", (char *)'\n' },
56 { "raise", BOOL, (READ|WRITE)<<PUBLIC,
57 "ra", (char *)FALSE },
58 { "raisechar", CHAR, (READ|WRITE)<<PUBLIC,
3cd1a53c 59 "rc", (char *)CTRL('a') },
6b46907f
RC
60 { "record", STRING|INIT|IREMOTE, (READ|WRITE)<<PUBLIC,
61 "rec", (char *)&RE },
55c8084d
BJ
62 { "remote", STRING|INIT|IREMOTE, READ<<PUBLIC,
63 NOSTR, (char *)&RM },
64 { "script", BOOL, (READ|WRITE)<<PUBLIC,
65 "sc", (char *)FALSE },
66 { "tabexpand", BOOL, (READ|WRITE)<<PUBLIC,
67 "tab", (char *)FALSE },
68 { "verbose", BOOL, (READ|WRITE)<<PUBLIC,
69 "verb", (char *)TRUE },
70 { "SHELL", STRING|ENVIRON|INIT, (READ|WRITE)<<PUBLIC,
71 NULL, "/bin/sh" },
72 { "HOME", STRING|ENVIRON, (READ|WRITE)<<PUBLIC,
73 NOSTR, NOSTR },
a2c6551c
SL
74 { "echocheck", BOOL, (READ|WRITE)<<PUBLIC,
75 "ec", (char *)FALSE },
6b46907f
RC
76 { "disconnect", STRING|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
77 "di", (char *)&DI },
78 { "tandem", BOOL, (READ|WRITE)<<PUBLIC,
79 "ta", (char *)TRUE },
80 { "linedelay", NUMBER|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
81 "ldelay", (char *)&DL },
82 { "chardelay", NUMBER|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
83 "cdelay", (char *)&CL },
84 { "etimeout", NUMBER|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
85 "et", (char *)&ET },
86 { "rawftp", BOOL, (READ|WRITE)<<PUBLIC,
87 "raw", (char *)FALSE },
88 { "halfduplex", BOOL, (READ|WRITE)<<PUBLIC,
89 "hdx", (char *)FALSE },
90 { "localecho", BOOL, (READ|WRITE)<<PUBLIC,
91 "le", (char *)FALSE },
05862919 92 { "parity", STRING|INIT|IREMOTE, (READ|WRITE)<<PUBLIC,
6b46907f 93 "par", (char *)&PA },
55c8084d
BJ
94 { NOSTR, NULL, NULL, NOSTR, NOSTR }
95};