home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3965 / async.h next >
Encoding:
C/C++ Source or Header  |  1991-09-04  |  2.1 KB  |  53 lines

  1. /* Terminal interface header file
  2.    Copyright (C) 1991 Joseph H. Allen
  3.  
  4. This file is part of JOE (Joe's Own Editor)
  5.  
  6. JOE is free software; you can redistribute it and/or modify it under the terms
  7. of the GNU General Public License as published by the Free Software
  8. Foundation; either version 1, or (at your option) any later version.  
  9.  
  10. JOE is distributed in the hope that it will be useful, but WITHOUT ANY
  11. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. A PARTICULAR PURPOSE.  See the GNU General Public License for more details.  
  13.  
  14. You should have received a copy of the GNU General Public License
  15. along with JOE; see the file COPYING.  If not, write to
  16. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. int aopen();        /* fflush(stdout) and then set terminal to
  19.                character at a time mode */
  20. int aclose();        /* Flush output and then restore original tty mode */
  21. int aflush();        /* Flush the output and sleep for the amount of time
  22.                the output will need to get to the terminal (I.E.,
  23.                depends on the baud rate).  Then check if there's
  24.                any typeahead and set 'have' if there is */
  25. int anext();        /* Call aflush() and then return next char from
  26.                terminal */
  27.  
  28. extern int have;    /* Set if there is typeahead */
  29.  
  30. int eputs();        /* Write string to terminal */
  31. int eputc();        /* Write character to terminal */
  32.             /* If the output buffer gets full, these call
  33.                aflush() */
  34.  
  35. int shell();        /* Shell escape */
  36. int tsignal();              /* JOE's signal handler.  This function saves the
  37.                            current edit file in 'aborted.joe' and then exists.
  38.                            Some signals might be set up to call this */
  39.  
  40. int termtype();             /* Determine the following terminal parameters */
  41.  
  42. extern int width;       /* Screen width */
  43. extern int height;      /* Screen height */
  44. extern int scroll;      /* Set=use scrolling regions, Clr=don't use them */
  45.  
  46. int getsize();        /* Set width and height again with TIOCGSIZE */
  47.  
  48. /* If termtype does nothing, these values defualt to: width=80, height=24,
  49.    scroll=1 (true).
  50.  
  51.    Note that the only terminal type supported is ANSI/VT100
  52.  */
  53.