date and time created 85/05/31 12:51:02 by bloom
[unix-history] / usr / src / usr.bin / ex / ex_data.c
CommitLineData
299f2784 1/* Copyright (c) 1981 Regents of the University of California */
dac571dd 2static char *sccsid = "@(#)ex_data.c 5.1.1.1 %G%";
e9a419e5
MH
3#include "ex.h"
4#include "ex_tty.h"
5
6/*
7 * Initialization of option values.
8 * The option #defines in ex_vars.h are made
9 * from this file by the script makeoptions.
887e3e0d
MH
10 *
11 * These initializations are done char by char instead of as strings
12 * to confuse xstr so it will leave them alone.
e9a419e5 13 */
887e3e0d 14char direct[ONMSZ] =
299f2784 15 {'/', 't', 'm', 'p'};
887e3e0d 16char paragraphs[ONMSZ] = {
e9a419e5
MH
17 'I', 'P', 'L', 'P', 'P', 'P', 'Q', 'P', /* -ms macros */
18 'P', ' ', 'L', 'I', /* -mm macros */
299f2784 19 'p', 'p', 'l', 'p', 'i', 'p', /* -me macros */
e9a419e5
MH
20 'b', 'p' /* bare nroff */
21};
887e3e0d
MH
22char sections[ONMSZ] = {
23 'N', 'H', 'S', 'H', /* -ms macros */
299f2784
MH
24 'H', ' ', 'H', 'U', /* -mm macros */
25 'n', 'h', 's', 'h' /* -me macros */
887e3e0d
MH
26};
27char shell[ONMSZ] =
e9a419e5 28 { '/', 'b', 'i', 'n', '/', 's', 'h' };
887e3e0d
MH
29char tags[ONMSZ] = {
30 't', 'a', 'g', 's', ' ',
31 '/', 'u', 's', 'r', '/', 'l', 'i', 'b', '/', 't', 'a', 'g', 's'
32};
33char ttytype[ONMSZ] =
e9a419e5
MH
34 { 'd', 'u', 'm', 'b' };
35
36short COLUMNS = 80;
37short LINES = 24;
38
39struct option options[NOPTS + 1] = {
40 "autoindent", "ai", ONOFF, 0, 0, 0,
41 "autoprint", "ap", ONOFF, 1, 1, 0,
42 "autowrite", "aw", ONOFF, 0, 0, 0,
43 "beautify", "bf", ONOFF, 0, 0, 0,
44 "directory", "dir", STRING, 0, 0, direct,
45 "edcompatible", "ed", ONOFF, 0, 0, 0,
46 "errorbells", "eb", ONOFF, 0, 0, 0,
47 "hardtabs", "ht", NUMERIC, 8, 8, 0,
48 "ignorecase", "ic", ONOFF, 0, 0, 0,
49 "lisp", 0, ONOFF, 0, 0, 0,
50 "list", 0, ONOFF, 0, 0, 0,
e9a419e5 51 "magic", 0, ONOFF, 1, 1, 0,
d266c416 52 "mesg", 0, ONOFF, 1, 1, 0,
f6e8a45e 53 "modeline", 0, ONOFF, 0, 0, 0,
e9a419e5
MH
54 "number", "nu", ONOFF, 0, 0, 0,
55 "open", 0, ONOFF, 1, 1, 0,
56 "optimize", "opt", ONOFF, 0, 0, 0,
57 "paragraphs", "para", STRING, 0, 0, paragraphs,
58 "prompt", 0, ONOFF, 1, 1, 0,
d266c416 59 "readonly", "ro", ONOFF, 0, 0, 0,
e9a419e5 60 "redraw", 0, ONOFF, 0, 0, 0,
887e3e0d 61 "remap", 0, ONOFF, 1, 1, 0,
e9a419e5
MH
62 "report", 0, NUMERIC, 5, 5, 0,
63 "scroll", "scr", NUMERIC, 12, 12, 0,
64 "sections", "sect", STRING, 0, 0, sections,
65 "shell", "sh", STRING, 0, 0, shell,
66 "shiftwidth", "sw", NUMERIC, TABS, TABS, 0,
67 "showmatch", "sm", ONOFF, 0, 0, 0,
68 "slowopen", "slow", ONOFF, 0, 0, 0,
69 "tabstop", "ts", NUMERIC, TABS, TABS, 0,
d266c416
MH
70 "taglength", "tl", NUMERIC, 0, 0, 0,
71 "tags", "tag", STRING, 0, 0, tags,
e9a419e5
MH
72 "term", 0, OTERM, 0, 0, ttytype,
73 "terse", 0, ONOFF, 0, 0, 0,
887e3e0d
MH
74 "timeout", "to", ONOFF, 1, 1, 0,
75 "ttytype", "tty", OTERM, 0, 0, ttytype,
e9a419e5
MH
76 "warn", 0, ONOFF, 1, 1, 0,
77 "window", "wi", NUMERIC, 23, 23, 0,
78 "wrapscan", "ws", ONOFF, 1, 1, 0,
79 "wrapmargin", "wm", NUMERIC, 0, 0, 0,
80 "writeany", "wa", ONOFF, 0, 0, 0,
81 0, 0, 0, 0, 0, 0,
82};