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. 9: */ 10: char direct[32] = 11: { '/', 't', 'm', 'p' }; 12: char sections[32] = { 13: 'N', 'H', 'S', 'H', /* -ms macros */ 14: 'H', ' ', 'H', 'U' /* -mm macros */ 15: }; 16: char paragraphs[32] = { 17: 'I', 'P', 'L', 'P', 'P', 'P', 'Q', 'P', /* -ms macros */ 18: 'P', ' ', 'L', 'I', /* -mm macros */ 19: 'b', 'p' /* bare nroff */ 20: }; 21: char shell[32] = 22: { '/', 'b', 'i', 'n', '/', 's', 'h' }; 23: char ttytype[16] = 24: { 'd', 'u', 'm', 'b' }; 25: 26: short COLUMNS = 80; 27: short LINES = 24; 28: 29: struct option options[NOPTS + 1] = { 30: "autoindent", "ai", ONOFF, 0, 0, 0, 31: "autoprint", "ap", ONOFF, 1, 1, 0, 32: "autowrite", "aw", ONOFF, 0, 0, 0, 33: "beautify", "bf", ONOFF, 0, 0, 0, 34: "directory", "dir", STRING, 0, 0, direct, 35: "errorbells", "eb", ONOFF, 0, 0, 0, 36: "hardtabs", "ht", NUMERIC, 8, 8, 0, 37: "ignorecase", "ic", ONOFF, 0, 0, 0, 38: "lisp", 0, ONOFF, 0, 0, 0, 39: "list", 0, ONOFF, 0, 0, 0, 40: "magic", 0, ONOFF, 1, 1, 0, 41: "number", "nu", ONOFF, 0, 0, 0, 42: "open", 0, ONOFF, 1, 1, 0, 43: "optimize", "opt", ONOFF, 0, 0, 0, 44: "paragraphs", "para", STRING, 0, 0, paragraphs, 45: "prompt", 0, ONOFF, 1, 1, 0, 46: "readonly", "ro", ONOFF, 0, 0, 0, 47: "redraw", 0, ONOFF, 0, 0, 0, 48: "report", 0, NUMERIC, 5, 5, 0, 49: "scroll", "scr", NUMERIC, 12, 12, 0, 50: "sections", "sect", STRING, 0, 0, sections, 51: "shell", "sh", STRING, 0, 0, shell, 52: "shiftwidth", "sw", NUMERIC, TABS, TABS, 0, 53: "showmatch", "sm", ONOFF, 0, 0, 0, 54: "slowopen", "slow", ONOFF, 0, 0, 0, 55: "tabstop", "ts", NUMERIC, TABS, TABS, 0, 56: "taglength", "tl", NUMERIC, 0, 0, 0, 57: "ttytype", "tty", OTERM, 0, 0, ttytype, 58: "term", 0, OTERM, 0, 0, ttytype, 59: "terse", 0, ONOFF, 0, 0, 0, 60: "warn", 0, ONOFF, 1, 1, 0, 61: "window", "wi", NUMERIC, 23, 23, 0, 62: "wrapscan", "ws", ONOFF, 1, 1, 0, 63: "wrapmargin", "wm", NUMERIC, 0, 0, 0, 64: "writeany", "wa", ONOFF, 0, 0, 0, 65: 0, 0, 0, 0, 0, 0, 66: };