| 1 |
/************************************************************************** |
| 2 |
* This program is Copyright (C) 1986-2002 by Jonathan Payne. JOVE is * |
| 3 |
* provided by Jonathan and Jovehacks without charge and without * |
| 4 |
* warranty. You may copy, modify, and/or distribute JOVE, provided that * |
| 5 |
* this notice is included in all the source files and documentation. * |
| 6 |
**************************************************************************/ |
| 7 |
|
| 8 |
#ifdef HIGHLIGHTING |
| 9 |
|
| 10 |
typedef void(*LEproc)(jbool); |
| 11 |
#define LENULLPROC (LEproc)0 |
| 12 |
|
| 13 |
typedef struct LErange { |
| 14 |
unsigned |
| 15 |
start, /* starting column for highlighting */ |
| 16 |
width; /* width of highlighting */ |
| 17 |
LEproc norm, |
| 18 |
high; |
| 19 |
} *LineEffects; |
| 20 |
|
| 21 |
#define NOEFFECT ((LineEffects) NULL) |
| 22 |
extern void US_effect(jbool); |
| 23 |
|
| 24 |
#else /* !HIGHLIGHTING */ |
| 25 |
|
| 26 |
typedef jbool LineEffects; /* standout or not */ |
| 27 |
#define NOEFFECT NO |
| 28 |
|
| 29 |
#endif /* !HIGHLIGHTING */ |
| 30 |
|
| 31 |
struct screenline { |
| 32 |
char |
| 33 |
*s_line, |
| 34 |
*s_roof; /* character after last */ |
| 35 |
LineEffects s_effects; |
| 36 |
}; |
| 37 |
|
| 38 |
extern struct screenline |
| 39 |
*Screen, |
| 40 |
*Curline; |
| 41 |
|
| 42 |
extern char *cursend; |
| 43 |
|
| 44 |
extern int |
| 45 |
AbortCnt, |
| 46 |
|
| 47 |
CapLine, /* cursor line and cursor column */ |
| 48 |
CapCol; |
| 49 |
|
| 50 |
extern jbool |
| 51 |
BufSwrite(int linenum), |
| 52 |
swrite(char *line, LineEffects hl, jbool abortable); |
| 53 |
|
| 54 |
extern LineEffects |
| 55 |
WindowRange(Window *w); |
| 56 |
|
| 57 |
extern void |
| 58 |
Placur(int line,int col), |
| 59 |
cl_eol(void), |
| 60 |
cl_scr(jbool doit), |
| 61 |
clrline(char *cp1, char *cp2), |
| 62 |
i_set(int nline, int ncol), |
| 63 |
make_scr(void), |
| 64 |
v_ins_line(int num, int top, int bottom), |
| 65 |
v_del_line(int num, int top, int bottom), |
| 66 |
SO_effect(jbool), |
| 67 |
SO_off(void); |
| 68 |
|
| 69 |
#define TABDIST(col) (tabstop - (col)%tabstop) /* cols to next tabstop */ |
| 70 |
|
| 71 |
/* Variables: */ |
| 72 |
|
| 73 |
extern int tabstop; /* VAR: expand tabs to this number of spaces */ |