-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.c
More file actions
57 lines (39 loc) · 1.81 KB
/
global.c
File metadata and controls
57 lines (39 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include "estruct.h"
#include <stddef.h>
int kbdm[NKBDM]; /* Keyboard Macro */
int *kbdptr; /* Current position in keyboard buf */
int *kbdend = kbdm; /* Ptr to end of the keyboard */
int kbdmode = STOP; /* Current keyboard macro mode */
int kbdrep; /* Number of repetitions */
int sgarbf = TRUE; /* TRUE if screen is garbage */
int mpresf = FALSE; /* TRUE if message in last line */
short term_nrow; /* Terminal rows, update on startup */
short term_ncol; /* Terminal columns, update on startup */
short term_margin = 8; /* Min margin for extended lines */
short term_scrsiz = 64; /* Size of scroll region */
int ttrow; /* Row location of HW cursor */
int ttcol; /* Column location of HW cursor */
int vtrow; /* Row location of SW cursor */
int vtcol; /* Column location of SW cursor */
int display_ok = 0; /* Display resources is ready or not */
int currow; /* Cursor row */
int curcol; /* Cursor column */
int lbound; /* Leftmost column of current line being displayed */
int taboff; /* Tab offset for display */
struct kill *kbufp; /* Current kill buffer chunk pointer */
struct kill *kheadp; /* Head of kill buffer chunks */
int kused = KBLOCK; /* # of bytes used in kill buffer */
long envram = 0; /* # of bytes current in use by malloc */
char *fline = NULL; /* Dynamic return line */
int flen = 0; /* Current length of fline */
int scrollcount = 1; /* Number of lines to scroll */
struct window *curwp; /* Current window */
struct window *wheadp; /* Head of list of windows */
struct buffer *bheadp; /* Head of list of buffers */
int curgoal; /* Goal for C-P, C-N */
int thisflag; /* Flags, this command */
int lastflag; /* Flags, last command */
char pat[NPAT]; /* Search pattern */
char rpat[NPAT]; /* Replacement pattern */
char exact_search = 0; /* Do case sensitive search */
char hex[] = "0123456789ABCDEF";