home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
jove-4.16-src.tgz
/
tar.out
/
bsd
/
jove
/
disp.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-28
|
3KB
|
98 lines
/************************************************************************
* This program is Copyright (C) 1986-1996 by Jonathan Payne. JOVE is *
* provided to you without charge, and with no warranty. You may give *
* away copies of JOVE, including sources, provided that this notice is *
* included in all the files. *
************************************************************************/
#define makedirty(line) { (line)->l_dline |= DDIRTY; }
#define isdirty(line) ((line)->l_dline & DDIRTY)
struct scrimage {
int s_offset, /* offset to start printing at */
s_flags, /* various flags */
s_vln; /* Visible Line Number */
daddr s_id; /* unique identifier */
LinePtr s_lp; /* line to display (if any) */
Window *s_window; /* window that contains this line */
};
/* s_flags flags */
#define s_DIRTY 01 /* buffer line changed since last displayed */
#define s_MODELINE 02 /* this is a modeline */
#define s_L_MOD 04 /* line has been modified internally */
extern struct scrimage
*DesiredScreen, /* what we want */
*PhysScreen; /* what we got */
extern bool UpdMesg; /* update the message line */
extern bool
chkmail proto((bool force));
extern int
calc_pos proto((char *lp,int c_char));
#define MAX_TYPEOUT 132 /* maximum width of typout (in chars) */
extern void
ChkWindows proto((LinePtr line1,LinePtr line2)),
ChkWinLines proto((void)),
DrawMesg proto((bool abortable)),
message proto((char *)),
TOstart proto((char *name)),
TOstop proto((void)),
Typeout proto((char *, ...)),
rbell proto((void)),
redisplay proto((void));
#ifdef WINRESIZE
extern volatile bool
ResizePending; /* asynch request for screen resize */
# ifdef WIN32
extern void ResizeWindow proto((void));
# endif
#endif
extern bool
DisabledRedisplay;
#ifdef ID_CHAR
extern bool
IN_INSmode;
extern void
INSmode proto((bool));
#endif /* ID_CHAR */
/* Variables: */
extern bool BriteMode; /* VAR: make the mode line inverse? */
#ifdef UNIX
extern int MailInt; /* VAR: mail check interval */
extern char Mailbox[FILESIZE]; /* VAR: mailbox name */
#endif /* UNIX */
extern char ModeFmt[120]; /* VAR: mode line format string */
extern bool ScrollAll; /* VAR: when current line scrolls, scroll whole window? */
extern int ScrollWidth; /* VAR: unit of horizontal scrolling */
extern bool UseBuffers; /* VAR: use buffers with Typeout() */
#ifdef ID_CHAR
extern bool UseIC; /* VAR: whether or not to use i/d char processesing */
#endif
extern bool VisBell; /* VAR: use visible bell (if possible) */
extern bool MarkHighlighting; /* VAR: highlight mark when visible */
/* Commands: */
extern void
Bow proto((void)),
ClAndRedraw proto((void)),
DownScroll proto((void)),
Eow proto((void)),
NextPage proto((void)),
PrevPage proto((void)),
RedrawDisplay proto((void)),
UpScroll proto((void));