Subversion Repositories planix.SVN

Rev

Rev 105 | Rev 115 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
105 7u83 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
 
7
 
8
#include "ex.h"
9
#include "ex_tty.h"
10
 
11
/*
12
 * Initialization of option values.
13
 * The option #defines in ex_vars.h are made
14
 * from this file by the script makeoptions.
15
 *
16
 * These initializations are done char by char instead of as strings
17
 * to confuse xstr so it will leave them alone.
18
 */
19
char	direct[ONMSZ] =
20
	{'/', 't', 'm', 'p'}; 
21
char	paragraphs[ONMSZ] = {
22
	'I', 'P', 'L', 'P', 'P', 'P', 'Q', 'P',		/* -ms macros */
23
	'P', ' ', 'L', 'I',				/* -mm macros */
24
	'p', 'p', 'l', 'p', 'i', 'p',			/* -me macros */
25
	'b', 'p'					/* bare nroff */
26
};
27
char	sections[ONMSZ] = {
28
	'N', 'H', 'S', 'H',				/* -ms macros */
29
	'H', ' ', 'H', 'U',				/* -mm macros */
30
	'n', 'h', 's', 'h'				/* -me macros */
31
};
32
char	shell[ONMSZ] =
33
	{ '/', 'b', 'i', 'n', '/', 's', 'h' };
34
char	tags[ONMSZ] = {
35
	't', 'a', 'g', 's', ' ',
36
	'/', 'u', 's', 'r', '/', 'l', 'i', 'b', '/', 't', 'a', 'g', 's'
37
};
38
char	ttytype[ONMSZ] =
39
	{ 'd', 'u', 'm', 'b' };
40
 
41
short	COLUMNS = 80;
42
short	LINES = 24;
43
 
114 7u83 44
 
45
 
105 7u83 46
struct	option options[NOPTS + 1] = {
114 7u83 47
/*	name		abbrev	type		def.	val	osval	*/	
105 7u83 48
	"autoindent",	"ai",	ONOFF,		0,	0,	0,
49
	"autoprint",	"ap",	ONOFF,		1,	1,	0,
50
	"autowrite",	"aw",	ONOFF,		0,	0,	0,
51
	"beautify",	"bf",	ONOFF,		0,	0,	0,
52
	"directory",	"dir",	STRING,		0,	0,	direct,
53
	"edcompatible",	"ed",	ONOFF,		0,	0,	0,
54
	"errorbells",	"eb",	ONOFF,		0,	0,	0,
55
	"hardtabs",	"ht",	NUMERIC,	8,	8,	0,
56
	"ignorecase",	"ic",	ONOFF,		0,	0,	0,
57
	"lisp",		0,	ONOFF,		0,	0,	0,
58
	"list",		0,	ONOFF,		0,	0,	0,
59
	"magic",	0,	ONOFF,		1,	1,	0,
60
	"mesg",		0,	ONOFF,		1,	1,	0,
61
	"modeline",	0,	ONOFF,		0,	0,	0,
62
	"number",	"nu",	ONOFF,		0,	0,	0,
63
	"open",		0,	ONOFF,		1,	1,	0,
64
	"optimize",	"opt",	ONOFF,		0,	0,	0,
65
	"paragraphs",	"para",	STRING,		0,	0,	paragraphs,
66
	"prompt",	0,	ONOFF,		1,	1,	0,
67
	"readonly",	"ro",	ONOFF,		0,	0,	0,
68
	"redraw",	0,	ONOFF,		0,	0,	0,
69
	"remap",	0,	ONOFF,		1,	1,	0,
70
	"report",	0,	NUMERIC,	5,	5,	0,
71
	"scroll",	"scr",	NUMERIC,	12,	12,	0,
72
	"sections",	"sect",	STRING,		0,	0,	sections,
73
	"shell",	"sh",	STRING,		0,	0,	shell,
74
	"shiftwidth",	"sw",	NUMERIC,	TABS,	TABS,	0,
75
	"showmatch",	"sm",	ONOFF,		0,	0,	0,
76
	"slowopen",	"slow",	ONOFF,		0,	0,	0,
77
	"sourceany",	0,	ONOFF,		0,	0,	0,
78
	"tabstop",	"ts",	NUMERIC,	TABS,	TABS,	0,
79
	"taglength",	"tl",	NUMERIC,	0,	0,	0,
80
	"tags",		"tag",	STRING,		0,	0,	tags,
81
	"term",		0,	OTERM,		0,	0,	ttytype,
82
	"terse",	0,	ONOFF,		0,	0,	0,
83
	"timeout",	"to",	ONOFF,		1,	1,	0,
84
	"ttytype",	"tty",	OTERM,		0,	0,	ttytype,
85
	"warn",		0,	ONOFF,		1,	1,	0,
86
	"window",	"wi",	NUMERIC,	23,	23,	0,
87
	"wrapscan",	"ws",	ONOFF,		1,	1,	0,
88
	"wrapmargin",	"wm",	NUMERIC,	0,	0,	0,
89
	"writeany",	"wa",	ONOFF,		0,	0,	0,
90
	0,		0,	0,		0,	0,	0,
91
};