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 >
C/C++ Source or Header  |  1996-09-28  |  3KB  |  98 lines

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