⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 global.c

📁 一个开源著名的TDE编辑器源代码
💻 C
字号:
/*******************  start of original comments  ********************//* * Written by Douglas Thomson (1989/1990) * * This source code is released into the public domain. *//*********************  end of original comments   ********************//* * New editor name:  TDE, the Thomson-Davis Editor. * Author:           Frank Davis * Date:             June 5, 1991 * * This modification of Douglas Thomson's code is released into the * public domain, Frank Davis.  You may distribute it freely. * * See "tdestr.h" for a description of these variables. C requires global *  variables to be declared "extern" in all modules except one.  This file *  is included in ed.c and it should not be included in any other module. * * jmh 980525: made it a C file. ed.c now includes "common.h" */#include "tdestr.h"#include "tdefunc.h"#include "define.h"displays g_display;status_infos g_status;boyer_moore_type bm;boyer_moore_type sas_bm;MACRO *macro[MODIFIERS][MAX_KEYS];TREE  key_tree = { 0x10000L, NULL, 0, NULL, NULL };#if defined( __DOS16__ )CEH ceh;#endifSORT sort;DIFF diff;REGX_INFO regx;REGX_INFO sas_regx;NFA_TYPE nfa;NFA_TYPE sas_nfa;char line_out[MAX_COLS+2];#if defined( __UNIX__ )chtype tde_color_table[256];#endifchar ruler_line[MAX_LINE_LENGTH+MAX_COLS+2];TDE_WIN ruler_win;/* * Scancode mapping. This translates keyboard hardware scancodes to TDE * keycodes. Added by jmh 020903. */int  scancode_map[MAX_KEYS] = {   _ESC, _1, _2, _3, _4, _5, _6, _7, _8, _9, _0, _MINUS, _EQUALS, _BACKSPACE,   _TAB, _Q, _W, _E, _R, _T, _Y, _U, _I, _O, _P, _LBRACKET, _RBRACKET, _ENTER,   _CONTROLKEY, _A, _S, _D, _F, _G, _H, _J, _K, _L, _SEMICOLON, _APOSTROPHE,   _BACKQUOTE, _SHIFTKEY, _BACKSLASH, _Z, _X, _C, _V, _B, _N, _M, _COMMA,   _PERIOD, _SLASH, _CONTROL_BREAK, _GREY_STAR, _ALTKEY, _SPACEBAR, _CAPSLOCK,   _F1, _F2, _F3, _F4, _F5, _F6, _F7, _F8, _F9, _F10, _GREY_ENTER, _GREY_SLASH,   _HOME, _UP, _PGUP, _GREY_MINUS, _LEFT, _CENTER, _RIGHT, _GREY_PLUS, _END,   _DOWN, _PGDN, _INS, _DEL, _PRTSC, _FAKE_F11, _LEFT_BACKSLASH, _F11, _F12,};/* * Graphic character sets. Added by jmh 980724. * jmh 991019: added ASCII. */const char graphic_char[GRAPHIC_SETS][11] = {   { '|', '+', '+', '+',          '+', '+', '+',          '+', '+', '+', '-' },   { '

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -