Debian Codegraph @

disp.h

raw
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 #define makedirty(line) { (line)->l_dline |= DDIRTY; }
9 #define isdirty(line) ((line)->l_dline & DDIRTY)
10
11 typedef DADDR jwid_t; /* DADDR must be >= max(sizeof(daddr),sizeof(Buffer *)) */
12
13 struct scrimage {
14 int s_offset, /* offset to start printing at */
15 s_flags; /* various flags */
16 long s_vln; /* Visible Line Number */
17 jwid_t s_id; /* unique identifier for line */
18 LinePtr s_lp; /* line to display (if any) */
19 Window *s_window; /* window that contains this line */
20 };
21
22 /* s_flags flags */
23 #define s_DIRTY 01 /* buffer line changed since last displayed */
24 #define s_MODELINE 02 /* this is a modeline */
25 #define s_L_MOD 04 /* line has been modified internally */
26
27 extern struct scrimage
28 *DesiredScreen, /* what we want */
29 *PhysScreen; /* what we got */
30
31 extern jbool
32 UpdMesg; /* update the message line */
33
34 extern jbool
35 chkmail(jbool force);
36
37 extern int
38 calc_pos(char *lp,int c_char);
39
40 #define MAX_TYPEOUT MAXCOLS /* maximum width of typout (in chars) */
41
42 extern void
43 ChkWindows(LinePtr line1,LinePtr line2),
44 ChkWinLines(void),
45 DrawMesg(jbool abortable),
46 message(const char *),
47 TOstart(const char *name),
48 TOstop(void),
49 Typeout(const char *, ...),
50 rbell(void),
51 redisplay(void);
52
53 #ifdef WINRESIZE
54 extern volatile jbool
55 ResizePending; /* asynch request for screen resize */
56 # ifdef WIN32
57 extern void ResizeWindow(void);
58 # endif
59 #endif
60
61 extern jbool
62 DisabledRedisplay;
63
64 #ifdef ID_CHAR
65 extern jbool
66 IN_INSmode;
67
68 extern void
69 INSmode(jbool);
70 #endif /* ID_CHAR */
71
72
73 /* Variables: */
74
75 extern jbool BriteMode; /* VAR: make the mode line inverse? */
76 #ifdef UNIX
77 extern int MailInt; /* VAR: mail check interval */
78 extern char Mailbox[FILESIZE]; /* VAR: mailbox name */
79 #endif /* UNIX */
80 extern char ModeFmt[MAXCOLS]; /* VAR: mode line format string */
81 extern jbool ScrollAll; /* VAR: when current line scrolls, scroll whole window? */
82 extern int ScrollWidth; /* VAR: unit of horizontal scrolling */
83 extern jbool UseBuffers; /* VAR: use buffers with Typeout() */
84 #ifdef ID_CHAR
85 extern jbool UseIC; /* VAR: whether or not to use i/d char processesing */
86 #endif
87 extern jbool VisBell; /* VAR: use visible bell (if possible) */
88 extern jbool MarkHighlighting; /* VAR: highlight mark when visible */
89
90 /* Commands: */
91 extern void
92 Bow(void),
93 ClAndRedraw(void),
94 DownScroll(void),
95 Eow(void),
96 NextPage(void),
97 PrevPage(void),
98 RedrawDisplay(void),
99 UpScroll(void);