home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / x / xvisrc.zoo / termcap.h < prev    next >
C/C++ Source or Header  |  1992-07-28  |  2KB  |  88 lines

  1. /* Copyright (c) 1990,1991,1992 Chris and John Downey */
  2. /***
  3.  
  4. * @(#)termcap.h    2.1 (Chris & John Downey) 7/29/92
  5.  
  6. * program name:
  7.     xvi
  8. * function:
  9.     PD version of UNIX "vi" editor, with extensions.
  10. * module name:
  11.     termcap.h
  12. * module function:
  13.     Definitions for termcap terminal interface module.
  14. * history:
  15.     STEVIE - ST Editor for VI Enthusiasts, Version 3.10
  16.     Originally by Tim Thompson (twitch!tjt)
  17.     Extensive modifications by Tony Andrews (onecom!wldrdg!tony)
  18.     Heavily modified by Chris & John Downey
  19.  
  20. ***/
  21.  
  22. /*
  23.  * Size of screen.
  24.  */
  25. extern    unsigned int    LI;
  26. extern    unsigned int    CO;
  27.  
  28. #define Rows        LI
  29. #define Columns     CO
  30.  
  31. /*
  32.  * Standout glitch - see termcap.c.
  33.  */
  34. extern    int        SG;
  35.  
  36. #define SLINE_GLITCH    ((unsigned int) SG)
  37.  
  38. /*
  39.  * For the moment, inchar just maps to the routine provided
  40.  * by the system interface module.
  41.  */
  42. #define inchar(t)    inch(t)
  43.  
  44. /*
  45.  * There are no termcap capabilities for these:
  46.  */
  47. #define invis_cursor()        /* invisible cursor (very optional) */
  48. #define vis_cursor()        /* visible cursor (very optional) */
  49.  
  50. /*
  51.  * In the current implementation, this doesn't have to do anything.
  52.  */
  53. #define tty_close()
  54.  
  55. extern    int        cost_goto;    /* cost of using tty_goto() */
  56.  
  57. extern    bool_t        can_scroll_area;/* true if has scroll regions */
  58. extern    bool_t        can_del_line;    /* true if we can delete lines */
  59. extern    bool_t        can_ins_line;    /* true if we can insert lines */
  60. extern    bool_t        can_inschar;    /* true if we can insert characters */
  61.  
  62. /*
  63.  * Colour handling is possible if we have termcap,
  64.  * using the entries c0 .. c9 (not documented).
  65.  */
  66. #define DEF_SYSCOLOUR    0
  67. #define DEF_COLOUR    1
  68. #define DEF_STCOLOUR    2
  69. #define DEF_ROSCOLOUR    3
  70.  
  71. extern    void        outchar P((int c));
  72. extern    void        outstr P((char *s));
  73. extern    void        alert P((void));
  74. extern    void        flush_output P((void));
  75. extern    void        set_colour P((int c));
  76. extern    void        tty_goto P((int row, int col));
  77. extern    void        tty_linefeed P((void));
  78. extern    void        insert_line P((void));
  79. extern    void        delete_line P((void));
  80. extern    void        inschar P((int));
  81. extern    void        erase_line P((void));
  82. extern    void        erase_display P((void));
  83. extern    void        scroll_up P((int start_row, int end_row, int nlines));
  84. extern    void        scroll_down P((int start_row, int end_row, int nlines));
  85. extern    void        tty_open P((unsigned int *, unsigned int *));
  86. extern    void        tty_startv P((void));
  87. extern    void        tty_endv P((void));
  88.