File: term.c

package info (click to toggle)
jove 4.17.5.5-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 2,476 kB
  • sloc: ansic: 29,235; makefile: 535; sh: 428; python: 45
file content (34 lines) | stat: -rw-r--r-- 1,045 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**************************************************************************
 * This program is Copyright (C) 1986-2002 by Jonathan Payne.  JOVE is    *
 * provided by Jonathan and Jovehacks without charge and without          *
 * warranty.  You may copy, modify, and/or distribute JOVE, provided that *
 * this notice is included in all the source files and documentation.     *
 **************************************************************************/

#include "jove.h"
#include "term.h"

#include "fp.h"

/* universal termcap-like definitions (declared in jove.h) */

int
	SG = 0,		/* number of magic cookies left by SO and SE */
	LI,		/* number of lines */
	ILI,		/* number of internal lines (LI - 1) */
	CO;		/* number of columns (CO <= MAXCOLS) */

jbool
	TABS = NO;		/* terminal supports tabs */

#ifndef UNIX
void
settout()
{
# ifndef NO_JSTDOUT
	flushscreen();		/* flush the one character buffer */
	ScrBufSize = MAXTTYBUF;
	jstdout = fd_open("/dev/tty", F_WRITE|F_LOCKED, 1, (char *)NULL, ScrBufSize);
# endif
}
#endif /* !UNIX */