xref: /titanic_52/usr/src/cmd/vi/port/ex_tune.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate  * with the License.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate  * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate  *
14*7c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate  *
20*7c478bd9Sstevel@tonic-gate  * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate /*
23*7c478bd9Sstevel@tonic-gate  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24*7c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
25*7c478bd9Sstevel@tonic-gate  */
26*7c478bd9Sstevel@tonic-gate 
27*7c478bd9Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
28*7c478bd9Sstevel@tonic-gate /*	  All Rights Reserved  	*/
29*7c478bd9Sstevel@tonic-gate 
30*7c478bd9Sstevel@tonic-gate 
31*7c478bd9Sstevel@tonic-gate /* Copyright (c) 1981 Regents of the University of California */
32*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
33*7c478bd9Sstevel@tonic-gate /*
34*7c478bd9Sstevel@tonic-gate  * Definitions of editor parameters and limits
35*7c478bd9Sstevel@tonic-gate  */
36*7c478bd9Sstevel@tonic-gate 
37*7c478bd9Sstevel@tonic-gate /*
38*7c478bd9Sstevel@tonic-gate  * Pathnames.
39*7c478bd9Sstevel@tonic-gate  */
40*7c478bd9Sstevel@tonic-gate #define	EXRECOVER	"/usr/lib/exrecover"
41*7c478bd9Sstevel@tonic-gate #define	EXPRESERVE	"/usr/lib/expreserve"
42*7c478bd9Sstevel@tonic-gate #define USRPRESERVE	"/usr/preserve/"
43*7c478bd9Sstevel@tonic-gate #define	TMPDIR	"/var/tmp"
44*7c478bd9Sstevel@tonic-gate 
45*7c478bd9Sstevel@tonic-gate /*
46*7c478bd9Sstevel@tonic-gate  * If your system believes that tabs expand to a width other than
47*7c478bd9Sstevel@tonic-gate  * 8 then your makefile should cc with -DTABS=whatever, otherwise we use 8.
48*7c478bd9Sstevel@tonic-gate  */
49*7c478bd9Sstevel@tonic-gate #ifndef TABS
50*7c478bd9Sstevel@tonic-gate #define	TABS	8
51*7c478bd9Sstevel@tonic-gate #endif
52*7c478bd9Sstevel@tonic-gate 
53*7c478bd9Sstevel@tonic-gate /*
54*7c478bd9Sstevel@tonic-gate  * Maximums
55*7c478bd9Sstevel@tonic-gate  *
56*7c478bd9Sstevel@tonic-gate  * The definitions of LBSIZE and CRSIZE should be the same as BUFSIZE
57*7c478bd9Sstevel@tonic-gate  * Most other definitions are quite generous.
58*7c478bd9Sstevel@tonic-gate  */
59*7c478bd9Sstevel@tonic-gate 
60*7c478bd9Sstevel@tonic-gate #define LBSIZE		BUFSIZE		/* Line buffer size */
61*7c478bd9Sstevel@tonic-gate #define CRSIZE		BUFSIZE		/* Crypt block size */
62*7c478bd9Sstevel@tonic-gate 
63*7c478bd9Sstevel@tonic-gate #define ESIZE		1024
64*7c478bd9Sstevel@tonic-gate #define	FNSIZE		PATH_MAX+1	/* Max file name size */
65*7c478bd9Sstevel@tonic-gate #define	RHSSIZE		512		/* Size of rhs of substitute */
66*7c478bd9Sstevel@tonic-gate #define	NBRA		9		/* Number of re \( \) pairs */
67*7c478bd9Sstevel@tonic-gate #define	TAGSIZE		256		/* Tag length */
68*7c478bd9Sstevel@tonic-gate #define	ONMSZ		BUFSIZE		/* Option name size */
69*7c478bd9Sstevel@tonic-gate #define	GBSIZE		256		/* Buffer size */
70*7c478bd9Sstevel@tonic-gate #define	UXBSIZE		128		/* Unix command buffer size */
71*7c478bd9Sstevel@tonic-gate #define	VBSIZE		128		/* Partial line max size in visual */
72*7c478bd9Sstevel@tonic-gate #ifndef VMUNIX
73*7c478bd9Sstevel@tonic-gate #define	LBLKS		125		/* Line pointer blocks in temp file */
74*7c478bd9Sstevel@tonic-gate #define	HBLKS		1		/* struct header fits in BUFSIZE*HBLKS */
75*7c478bd9Sstevel@tonic-gate #else
76*7c478bd9Sstevel@tonic-gate #define	LBLKS		4000
77*7c478bd9Sstevel@tonic-gate #define HBLKS		((sizeof(struct header)+BUFSIZE-1)/BUFSIZE)
78*7c478bd9Sstevel@tonic-gate #endif
79*7c478bd9Sstevel@tonic-gate #define	MAXDIRT		12		/* Max dirtcnt before sync tfile */
80*7c478bd9Sstevel@tonic-gate #define TCBUFSIZE	1024		/* Max entry size in termcap, see
81*7c478bd9Sstevel@tonic-gate 					   also termlib and termcap */
82*7c478bd9Sstevel@tonic-gate 
83*7c478bd9Sstevel@tonic-gate /*
84*7c478bd9Sstevel@tonic-gate  * Except on VMUNIX, these are a ridiculously small due to the
85*7c478bd9Sstevel@tonic-gate  * poor arglist processing implementation which fixes core
86*7c478bd9Sstevel@tonic-gate  * proportional to them.  Argv (and hence NARGS) is really unnecessary,
87*7c478bd9Sstevel@tonic-gate  * and argument character space not needed except when
88*7c478bd9Sstevel@tonic-gate  * arguments exist.  Argument lists should be saved before the "zero"
89*7c478bd9Sstevel@tonic-gate  * of the incore line information and could then
90*7c478bd9Sstevel@tonic-gate  * be reasonably large.
91*7c478bd9Sstevel@tonic-gate  */
92*7c478bd9Sstevel@tonic-gate #undef NCARGS
93*7c478bd9Sstevel@tonic-gate #define	NCARGS	5120
94*7c478bd9Sstevel@tonic-gate #define	NARGS	(NCARGS/6)
95*7c478bd9Sstevel@tonic-gate 
96*7c478bd9Sstevel@tonic-gate /*
97*7c478bd9Sstevel@tonic-gate  * If you have no terminals
98*7c478bd9Sstevel@tonic-gate  * which are larger than 24 * 80 you may well want to make TUBESIZE
99*7c478bd9Sstevel@tonic-gate  * smaller.  TUBECOLS should stay at 160 since this defines the maximum
100*7c478bd9Sstevel@tonic-gate  * length of opening on hardcopies and allows two lines of open on
101*7c478bd9Sstevel@tonic-gate  * terminals like adm3's (glass tty's) where it switches to pseudo
102*7c478bd9Sstevel@tonic-gate  * hardcopy mode when a line gets longer than 80 characters.
103*7c478bd9Sstevel@tonic-gate  */
104*7c478bd9Sstevel@tonic-gate #define	TUBELINES	107	/* Number of screen lines for visual */
105*7c478bd9Sstevel@tonic-gate #define	TUBECOLS	500	/* Number of screen columns for visual */
106*7c478bd9Sstevel@tonic-gate #define	TUBESIZE	54500	/* Maximum screen size for visual */
107*7c478bd9Sstevel@tonic-gate 
108*7c478bd9Sstevel@tonic-gate /*
109*7c478bd9Sstevel@tonic-gate  * Output column (and line) are set to this value on cursor addressable
110*7c478bd9Sstevel@tonic-gate  * terminals when we lose track of the cursor to force cursor
111*7c478bd9Sstevel@tonic-gate  * addressing to occur.
112*7c478bd9Sstevel@tonic-gate  */
113*7c478bd9Sstevel@tonic-gate #define	UKCOL		-20	/* Prototype unknown column */
114*7c478bd9Sstevel@tonic-gate 
115*7c478bd9Sstevel@tonic-gate /*
116*7c478bd9Sstevel@tonic-gate  * Attention is the interrupt character (normally 0177 -- delete).
117*7c478bd9Sstevel@tonic-gate  * Quit is the quit signal (normally fs -- control-\) and quits open/visual.
118*7c478bd9Sstevel@tonic-gate  */
119*7c478bd9Sstevel@tonic-gate #define	ATTN	(-2)
120*7c478bd9Sstevel@tonic-gate #define	QUIT	('\\' & 037)
121