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