setgid to group "write" so that terminals need not be world writable
[unix-history] / usr / src / usr.bin / ex / ex_tune.h
CommitLineData
edf71f48
DF
1/*
2 * Copyright (c) 1980 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
6 * @(#)ex_tune.h 7.8 (Berkeley) %G%
7 */
8
56dbf936
MH
9/*
10 * Definitions of editor parameters and limits
11 */
12
13/*
14 * Pathnames.
15 *
16 * Only exstrings is looked at "+4", i.e. if you give
17 * "/usr/lib/..." here, "/lib" will be tried only for strings.
18 */
cf1c0d32
SL
19#define libpath(file) "/usr/lib/file"
20#define loclibpath(file) "/usr/local/lib/file"
21#define binpath(file) "/usr/ucb/file"
22#define usrpath(file) "/usr/file"
23#define E_TERMCAP "/etc/termcap"
24#define B_CSH "/bin/csh"
299f2784
MH
25#define EXRECOVER libpath(ex3.7recover)
26#define EXPRESERVE libpath(ex3.7preserve)
44232d5b 27#ifndef VMUNIX
299f2784 28#define EXSTRINGS libpath(ex3.7strings)
44232d5b 29#endif
56dbf936
MH
30
31/*
32 * If your system believes that tabs expand to a width other than
33 * 8 then your makefile should cc with -DTABS=whatever, otherwise we use 8.
34 */
35#ifndef TABS
36#define TABS 8
37#endif
38
39/*
40 * Maximums
41 *
42 * The definition of LBSIZE should be the same as BUFSIZ (512 usually).
44232d5b 43 * Most other definitions are quite generous.
56dbf936
MH
44 */
45/* FNSIZE is also defined in expreserve.c */
46#define FNSIZE 128 /* File name size */
44232d5b
MH
47#ifdef VMUNIX
48#define LBSIZE 1024
49#define ESIZE 512
d266c416 50#define CRSIZE 1024
44232d5b 51#else
3c7b865a
MH
52#ifdef u370
53#define LBSIZE 4096
54#define ESIZE 512
55#define CRSIZE 4096
56#else
56dbf936
MH
57#define LBSIZE 512 /* Line length */
58#define ESIZE 128 /* Size of compiled re */
d266c416 59#define CRSIZE 512
44232d5b 60#endif
3c7b865a 61#endif
56dbf936
MH
62#define RHSSIZE 256 /* Size of rhs of substitute */
63#define NBRA 9 /* Number of re \( \) pairs */
01c761d0 64#define TAGSIZE 128 /* Tag length */
887e3e0d 65#define ONMSZ 64 /* Option name size */
56dbf936
MH
66#define GBSIZE 256 /* Buffer size */
67#define UXBSIZE 128 /* Unix command buffer size */
68#define VBSIZE 128 /* Partial line max size in visual */
69/* LBLKS is also defined in expreserve.c */
44232d5b 70#ifndef VMUNIX
56dbf936 71#define LBLKS 125 /* Line pointer blocks in temp file */
44232d5b
MH
72#define HBLKS 1 /* struct header fits in BUFSIZ*HBLKS */
73#else
74#define LBLKS 900
75#define HBLKS 2
76#endif
56dbf936
MH
77#define MAXDIRT 12 /* Max dirtcnt before sync tfile */
78#define TCBUFSIZE 1024 /* Max entry size in termcap, see
79 also termlib and termcap */
80
81/*
44232d5b 82 * Except on VMUNIX, these are a ridiculously small due to the
56dbf936
MH
83 * lousy arglist processing implementation which fixes core
84 * proportional to them. Argv (and hence NARGS) is really unnecessary,
85 * and argument character space not needed except when
86 * arguments exist. Argument lists should be saved before the "zero"
87 * of the incore line information and could then
88 * be reasonably large.
89 */
b2fb6264 90#undef NCARGS
44232d5b 91#ifndef VMUNIX
56dbf936 92#define NARGS 100 /* Maximum number of names in "next" */
44232d5b
MH
93#define NCARGS LBSIZE /* Maximum arglist chars in "next" */
94#else
95#define NCARGS 5120
96#define NARGS (NCARGS/6)
97#endif
56dbf936
MH
98
99/*
100 * Note: because the routine "alloca" is not portable, TUBESIZE
101 * bytes are allocated on the stack each time you go into visual
44232d5b 102 * and then never freed by the system. Thus if you have no terminals
56dbf936
MH
103 * which are larger than 24 * 80 you may well want to make TUBESIZE
104 * smaller. TUBECOLS should stay at 160 since this defines the maximum
105 * length of opening on hardcopies and allows two lines of open on
106 * terminals like adm3's (glass tty's) where it switches to pseudo
107 * hardcopy mode when a line gets longer than 80 characters.
108 */
44232d5b 109#ifndef VMUNIX
ff59773d 110#define TUBELINES 60 /* Number of screen lines for visual */
56dbf936 111#define TUBECOLS 160 /* Number of screen columns for visual */
ff59773d 112#define TUBESIZE 5000 /* Maximum screen size for visual */
44232d5b 113#else
2146f98c 114#define TUBELINES 70
44232d5b 115#define TUBECOLS 160
2146f98c 116#define TUBESIZE 7000 /* 70 * 100 */
44232d5b 117#endif
56dbf936
MH
118
119/*
120 * Output column (and line) are set to this value on cursor addressible
121 * terminals when we lose track of the cursor to force cursor
122 * addressing to occur.
123 */
124#define UKCOL -20 /* Prototype unknown column */
125
126/*
127 * Attention is the interrupt character (normally 0177 -- delete).
128 * Quit is the quit signal (normally FS -- control-\) and quits open/visual.
129 */
299f2784 130#define ATTN (-2) /* mjm: (char) ?? */
56dbf936 131#define QUIT ('\\' & 037)