1: /* Copyright (c) 1981 Regents of the University of California */ 2: static char *sccsid = "@(#)ex_data.c 7.1 7/8/81"; 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. 10: * 11: * These initializations are done char by char instead of as strings 12: * to confuse xstr so it will leave them alone. 13: */ 14: char direct[ONMSZ] = 15: {'/', 't', 'm', 'p'}; 16: char paragraphs[ONMSZ] = { 17: 'I', 'P', 'L', 'P', 'P', 'P', 'Q', 'P', /* -ms macros */ 18: 'P', ' ', 'L', 'I', /* -mm macros */ 19: 'p', 'p', 'l', 'p', 'i', 'p', /* -me macros */ 20: 'b', 'p' /* bare nroff */ 21: }; 22: char sections[ONMSZ] = { 23: 'N', 'H', 'S', 'H', /* -ms macros */ 24: 'H', ' ', 'H', 'U', /* -mm macros */ 25: 'n', 'h', 's', 'h' /* -me macros */ 26: }; 27: char shell[ONMSZ] = 28: { '/', 'b', 'i', 'n', '/', 's', 'h' }; 29: char tags[ONMSZ] = { 30: 't', 'a', 'g', 's', ' ', 31: '/', 'u', 's', 'r', '/', 'l', 'i', 'b', '/', 't', 'a', 'g', 's' 32: }; 33: char ttytype[ONMSZ] = 34: { 'd', 'u', 'm', 'b' }; 35: 36: short COLUMNS = 80; 37: short LINES = 24; 38: 39: struct 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, 51: "magic", 0, ONOFF, 1, 1, 0, 52: "mesg", 0, ONOFF, 1, 1, 0, 53: "number", "nu", ONOFF, 0, 0, 0, 54: "open", 0, ONOFF, 1, 1, 0, 55: "optimize", "opt", ONOFF, 0, 0, 0, 56: "paragraphs", "para", STRING, 0, 0, paragraphs, 57: "prompt", 0, ONOFF, 1, 1, 0, 58: "readonly", "ro", ONOFF, 0, 0, 0, 59: "redraw", 0, ONOFF, 0, 0, 0, 60: "remap", 0, ONOFF, 1, 1, 0, 61: "report", 0, NUMERIC, 5, 5, 0, 62: "scroll", "scr", NUMERIC, 12, 12, 0, 63: "sections", "sect", STRING, 0, 0, sections, 64: "shell", "sh", STRING, 0, 0, shell, 65: "shiftwidth", "sw", NUMERIC, TABS, TABS, 0, 66: "showmatch", "sm", ONOFF, 0, 0, 0, 67: "slowopen", "slow", ONOFF, 0, 0, 0, 68: "tabstop", "ts", NUMERIC, TABS, TABS, 0, 69: "taglength", "tl", NUMERIC, 0, 0, 0, 70: "tags", "tag", STRING, 0, 0, tags, 71: "term", 0, OTERM, 0, 0, ttytype, 72: "terse", 0, ONOFF, 0, 0, 0, 73: "timeout", "to", ONOFF, 1, 1, 0, 74: "ttytype", "tty", OTERM, 0, 0, ttytype, 75: "warn", 0, ONOFF, 1, 1, 0, 76: "window", "wi", NUMERIC, 23, 23, 0, 77: "wrapscan", "ws", ONOFF, 1, 1, 0, 78: "wrapmargin", "wm", NUMERIC, 0, 0, 0, 79: "writeany", "wa", ONOFF, 0, 0, 0, 80: 0, 0, 0, 0, 0, 0, 81: };