1*7c478bd9Sstevel@tonic-gate/* 2*7c478bd9Sstevel@tonic-gate * Copyright 1997 Sun Microsystems, Inc. All rights reserved. 3*7c478bd9Sstevel@tonic-gate * Use is subject to license terms. 4*7c478bd9Sstevel@tonic-gate */ 5*7c478bd9Sstevel@tonic-gate 6*7c478bd9Sstevel@tonic-gate/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ 7*7c478bd9Sstevel@tonic-gate/* All Rights Reserved */ 8*7c478bd9Sstevel@tonic-gate 9*7c478bd9Sstevel@tonic-gate/* 10*7c478bd9Sstevel@tonic-gate * Copyright (c) 1980 Regents of the University of California. 11*7c478bd9Sstevel@tonic-gate * All rights reserved. The Berkeley software License Agreement 12*7c478bd9Sstevel@tonic-gate * specifies the terms and conditions for redistribution. 13*7c478bd9Sstevel@tonic-gate */ 14*7c478bd9Sstevel@tonic-gate 15*7c478bd9Sstevel@tonic-gate/* 16*7c478bd9Sstevel@tonic-gate * External variables for the curses library 17*7c478bd9Sstevel@tonic-gate */ 18*7c478bd9Sstevel@tonic-gate 19*7c478bd9Sstevel@tonic-gate/*LINTLIBRARY*/ 20*7c478bd9Sstevel@tonic-gate 21*7c478bd9Sstevel@tonic-gate#include "file64.h" 22*7c478bd9Sstevel@tonic-gate#include <curses.h> 23*7c478bd9Sstevel@tonic-gate#include <stdio.h> 24*7c478bd9Sstevel@tonic-gate#include <stdarg.h> 25*7c478bd9Sstevel@tonic-gate 26*7c478bd9Sstevel@tonic-gateextern bool _echoit, _rawmode, My_term, _endwin; 27*7c478bd9Sstevel@tonic-gate 28*7c478bd9Sstevel@tonic-gateextern char ttytype[50], *_unctrl[]; 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gateextern int _tty_ch, LINES, COLS; 31*7c478bd9Sstevel@tonic-gate 32*7c478bd9Sstevel@tonic-gateextern SGTTY _tty; 33*7c478bd9Sstevel@tonic-gate 34*7c478bd9Sstevel@tonic-gate 35*7c478bd9Sstevel@tonic-gate/* these are only for building libcurses */ 36*7c478bd9Sstevel@tonic-gate/* but, they could have been used by existing applications */ 37*7c478bd9Sstevel@tonic-gateextern int _sprintw(WINDOW *, char *, va_list); 38*7c478bd9Sstevel@tonic-gateextern int _putchar(char); 39*7c478bd9Sstevel@tonic-gateextern int _sscans(WINDOW *, char *, va_list); 40*7c478bd9Sstevel@tonic-gateextern void _swflags_(WINDOW *); 41*7c478bd9Sstevel@tonic-gateextern void _set_subwin_(WINDOW *, WINDOW *); 42*7c478bd9Sstevel@tonic-gateextern void _id_subwins(WINDOW *); 43*7c478bd9Sstevel@tonic-gate 44*7c478bd9Sstevel@tonic-gate/* this could have been used by existing applications */ 45*7c478bd9Sstevel@tonic-gateextern void tstp(void); 46*7c478bd9Sstevel@tonic-gateextern int gettmode(void); 47*7c478bd9Sstevel@tonic-gate 48*7c478bd9Sstevel@tonic-gate/* this one should be in /usr/include/term.h __STDC__, it is a bug there */ 49*7c478bd9Sstevel@tonic-gateextern char *tgoto(char *, int, int); 50*7c478bd9Sstevel@tonic-gate 51*7c478bd9Sstevel@tonic-gate#ifdef DEBUG 52*7c478bd9Sstevel@tonic-gate#define outf _outf 53*7c478bd9Sstevel@tonic-gate 54*7c478bd9Sstevel@tonic-gateFILE *outf; 55*7c478bd9Sstevel@tonic-gate#endif 56*7c478bd9Sstevel@tonic-gate 57*7c478bd9Sstevel@tonic-gate/* inter-library dependency */ 58*7c478bd9Sstevel@tonic-gate 59*7c478bd9Sstevel@tonic-gateextern int _doscan(FILE *, const char *, va_list); 60