|
|
1.1 ! root 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: "edcompatible", "ed", ONOFF, 0, 0, 0, ! 36: "errorbells", "eb", ONOFF, 0, 0, 0, ! 37: "hardtabs", "ht", NUMERIC, 8, 8, 0, ! 38: "ignorecase", "ic", ONOFF, 0, 0, 0, ! 39: "lisp", 0, ONOFF, 0, 0, 0, ! 40: "list", 0, ONOFF, 0, 0, 0, ! 41: "magic", 0, ONOFF, 1, 1, 0, ! 42: "mapinput", "mi", ONOFF, 0, 0, 0, ! 43: "number", "nu", ONOFF, 0, 0, 0, ! 44: "open", 0, ONOFF, 1, 1, 0, ! 45: "optimize", "opt", ONOFF, 0, 0, 0, ! 46: "paragraphs", "para", STRING, 0, 0, paragraphs, ! 47: "prompt", 0, ONOFF, 1, 1, 0, ! 48: "redraw", 0, ONOFF, 0, 0, 0, ! 49: "report", 0, NUMERIC, 5, 5, 0, ! 50: "scroll", "scr", NUMERIC, 12, 12, 0, ! 51: "sections", "sect", STRING, 0, 0, sections, ! 52: "shell", "sh", STRING, 0, 0, shell, ! 53: "shiftwidth", "sw", NUMERIC, TABS, TABS, 0, ! 54: "showmatch", "sm", ONOFF, 0, 0, 0, ! 55: "slowopen", "slow", ONOFF, 0, 0, 0, ! 56: "tabstop", "ts", NUMERIC, TABS, TABS, 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: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.