home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / jove-4.16-src.tgz / tar.out / bsd / jove / term.c < prev    next >
C/C++ Source or Header  |  1996-09-28  |  1KB  |  35 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. #include "jove.h"
  9. #include "term.h"
  10.  
  11. #include "fp.h"
  12.  
  13. /* universal termcap-like definitions (declared in jove.h) */
  14.  
  15. int
  16.     SG = 0,        /* number of magic cookies left by SO and SE */
  17.     LI,        /* number of lines */
  18.     ILI,        /* number of internal lines (LI - 1) */
  19.     CO;        /* number of columns (CO <= MAXCOLS) */
  20.  
  21. bool
  22.     TABS = NO;        /* terminal supports tabs */
  23.  
  24. #ifndef UNIX
  25. void
  26. settout()
  27. {
  28. # ifndef NO_JSTDOUT
  29.     flushscreen();        /* flush the one character buffer */
  30.     ScrBufSize = min(MAXTTYBUF, 256);
  31.     jstdout = fd_open("/dev/tty", F_WRITE|F_LOCKED, 1, (char *)NULL, ScrBufSize);
  32. # endif
  33. }
  34. #endif /* !UNIX */
  35.