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

  1. /* Copyright (c) 1990,1991,1992 Chris and John Downey */
  2. /***
  3.  
  4. * @(#)ibmpc.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.     ibmpc.h
  12. * module function:
  13.     Declarations for terminal interface module for IBM PC
  14.     compatibles running MS-DOS.
  15.  
  16. * history:
  17.     STEVIE - ST Editor for VI Enthusiasts, Version 3.10
  18.     Originally by Tim Thompson (twitch!tjt)
  19.     Extensive modifications by Tony Andrews (onecom!wldrdg!tony)
  20.     Heavily modified by Chris & John Downey
  21.  
  22. ***/
  23.  
  24. #include <conio.h>
  25.  
  26. #define can_ins_line    FALSE
  27. #define can_del_line    FALSE
  28. #define can_scroll_area TRUE
  29. /*
  30.  * tty_linefeed() isn't needed if can_scroll_area is TRUE.
  31.  */
  32. #define tty_linefeed()
  33. #define can_inschar    FALSE
  34. #define inschar(c)
  35. #define cost_goto    0    /* cost of tty_goto() */
  36.  
  37. #define tty_close()
  38. #define vis_cursor()
  39. #define invis_cursor()
  40. #define insert_line()
  41. #define delete_line()
  42.  
  43. /*
  44.  * Colour handling: default screen colours for PC's.
  45.  */
  46. #define DEF_COLOUR    7    /* white on black */
  47. #define DEF_STCOLOUR    112    /* black on white */
  48. #define DEF_SYSCOLOUR    7    /* white on black */
  49.  
  50. /*
  51.  * Screen dimensions.
  52.  */
  53. extern unsigned int    Columns;
  54. extern unsigned int    Rows;
  55.  
  56. /*
  57.  * Declarations for routines in ibmpc_a.asm & ibmpc_c.c:
  58.  */
  59. extern void        alert P((void));
  60. extern void        erase_display P((void));
  61. extern void        erase_line P((void));
  62. extern void        flush_output P((void));
  63. extern void        hidemouse P((void));
  64. extern int        inchar P((long));
  65. extern unsigned        mousestatus P((unsigned *, unsigned *));
  66. extern void        outchar P((int));
  67. extern void        outstr P((char *));
  68. extern void        scroll_down P((unsigned, unsigned, int));
  69. extern void        scroll_up P((unsigned, unsigned, int));
  70. extern void        set_colour P((int));
  71. extern void        showmouse P((void));
  72. extern void        tty_endv P((void));
  73. extern void        tty_goto P((int, int));
  74. extern void        tty_open P((unsigned *, unsigned *));
  75. extern void        tty_startv P((void));
  76.