Debian Codegraph @

term.c

raw
1 /**************************************************************************
2 * This program is Copyright (C) 1986-2002 by Jonathan Payne. JOVE is *
3 * provided by Jonathan and Jovehacks without charge and without *
4 * warranty. You may copy, modify, and/or distribute JOVE, provided that *
5 * this notice is included in all the source files and documentation. *
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 jbool
22 TABS = NO; /* terminal supports tabs */
23
24 #ifndef UNIX
25 void
26 settout(void)
27 {
28 # ifndef NO_JSTDOUT
29 flushscreen(); /* flush the one character buffer */
30 ScrBufSize = MAXTTYBUF;
31 jstdout = fd_open("/dev/tty", F_WRITE|F_LOCKED, 1, (char *)NULL, ScrBufSize);
32 # endif
33 }
34 #endif /* !UNIX */