148255Sbostic /*- 2*63046Sbostic * Copyright (c) 1980, 1993 3*63046Sbostic * The Regents of the University of California. All rights reserved. 448255Sbostic * 548255Sbostic * %sccs.include.proprietary.c% 621658Sdist */ 721658Sdist 821658Sdist #ifndef lint 9*63046Sbostic static char sccsid[] = "@(#)ex_data.c 8.1 (Berkeley) 06/09/93"; 1048255Sbostic #endif /* not lint */ 1121658Sdist 12434Smark #include "ex.h" 13434Smark #include "ex_tty.h" 14434Smark 15434Smark /* 16434Smark * Initialization of option values. 17434Smark * The option #defines in ex_vars.h are made 18434Smark * from this file by the script makeoptions. 19490Smark * 20490Smark * These initializations are done char by char instead of as strings 21490Smark * to confuse xstr so it will leave them alone. 22434Smark */ 23490Smark char direct[ONMSZ] = 2430596Sconrad #ifdef vms 2530596Sconrad {'t', 'm', 'p', ':'}; 2630596Sconrad #else 2739117Sbostic {'/', 'v', 'a', 'r', '/', 't', 'm', 'p'}; 2830596Sconrad #endif 29490Smark char paragraphs[ONMSZ] = { 30434Smark 'I', 'P', 'L', 'P', 'P', 'P', 'Q', 'P', /* -ms macros */ 31434Smark 'P', ' ', 'L', 'I', /* -mm macros */ 3221683Sdist 'p', 'p', 'l', 'p', 'i', 'p', /* -me macros */ 33434Smark 'b', 'p' /* bare nroff */ 34434Smark }; 35490Smark char sections[ONMSZ] = { 36490Smark 'N', 'H', 'S', 'H', /* -ms macros */ 3721683Sdist 'H', ' ', 'H', 'U', /* -mm macros */ 3821683Sdist 'n', 'h', 's', 'h' /* -me macros */ 39490Smark }; 40490Smark char shell[ONMSZ] = 41434Smark { '/', 'b', 'i', 'n', '/', 's', 'h' }; 42490Smark char tags[ONMSZ] = { 43490Smark 't', 'a', 'g', 's', ' ', 4447704Sbostic '/', 'v', 'a', 'r', '/', 'd', 'b', '/', 'l', 'i', 'b', 'c', '.', 4547704Sbostic 't', 'a', 'g', 's' 46490Smark }; 47490Smark char ttytype[ONMSZ] = 48434Smark { 'd', 'u', 'm', 'b' }; 49434Smark 50434Smark short COLUMNS = 80; 51434Smark short LINES = 24; 52434Smark 53434Smark struct option options[NOPTS + 1] = { 54434Smark "autoindent", "ai", ONOFF, 0, 0, 0, 55434Smark "autoprint", "ap", ONOFF, 1, 1, 0, 56434Smark "autowrite", "aw", ONOFF, 0, 0, 0, 57434Smark "beautify", "bf", ONOFF, 0, 0, 0, 58434Smark "directory", "dir", STRING, 0, 0, direct, 59434Smark "edcompatible", "ed", ONOFF, 0, 0, 0, 60434Smark "errorbells", "eb", ONOFF, 0, 0, 0, 61434Smark "hardtabs", "ht", NUMERIC, 8, 8, 0, 62434Smark "ignorecase", "ic", ONOFF, 0, 0, 0, 6330596Sconrad #ifndef UNIX_SBRK 6430596Sconrad "linelimit", "ll", NUMERIC, 2000, 2000, 0, 6530596Sconrad #endif 66434Smark "lisp", 0, ONOFF, 0, 0, 0, 67434Smark "list", 0, ONOFF, 0, 0, 0, 68471Smark "magic", 0, ONOFF, 1, 1, 0, 69515Smark "mesg", 0, ONOFF, 1, 1, 0, 7021683Sdist "modeline", 0, ONOFF, 0, 0, 0, 71434Smark "number", "nu", ONOFF, 0, 0, 0, 72434Smark "open", 0, ONOFF, 1, 1, 0, 73434Smark "optimize", "opt", ONOFF, 0, 0, 0, 74434Smark "paragraphs", "para", STRING, 0, 0, paragraphs, 75434Smark "prompt", 0, ONOFF, 1, 1, 0, 76515Smark "readonly", "ro", ONOFF, 0, 0, 0, 77434Smark "redraw", 0, ONOFF, 0, 0, 0, 78490Smark "remap", 0, ONOFF, 1, 1, 0, 79434Smark "report", 0, NUMERIC, 5, 5, 0, 80434Smark "scroll", "scr", NUMERIC, 12, 12, 0, 81434Smark "sections", "sect", STRING, 0, 0, sections, 82434Smark "shell", "sh", STRING, 0, 0, shell, 83434Smark "shiftwidth", "sw", NUMERIC, TABS, TABS, 0, 84434Smark "showmatch", "sm", ONOFF, 0, 0, 0, 85434Smark "slowopen", "slow", ONOFF, 0, 0, 0, 8624487Sbloom "sourceany", 0, ONOFF, 0, 0, 0, 87515Smark "tabstop", "ts", NUMERIC, TABS, TABS, 0, 88515Smark "taglength", "tl", NUMERIC, 0, 0, 0, 89490Smark "tags", "tag", STRING, 0, 0, tags, 90434Smark "term", 0, OTERM, 0, 0, ttytype, 91434Smark "terse", 0, ONOFF, 0, 0, 0, 92490Smark "timeout", "to", ONOFF, 1, 1, 0, 93490Smark "ttytype", "tty", OTERM, 0, 0, ttytype, 94434Smark "warn", 0, ONOFF, 1, 1, 0, 95434Smark "window", "wi", NUMERIC, 23, 23, 0, 96434Smark "wrapscan", "ws", ONOFF, 1, 1, 0, 97434Smark "wrapmargin", "wm", NUMERIC, 0, 0, 0, 98434Smark "writeany", "wa", ONOFF, 0, 0, 0, 99434Smark 0, 0, 0, 0, 0, 0, 100434Smark }; 101