summaryrefslogtreecommitdiffstats
path: root/lib/libmytinfo/tcapvars.c
blob: 52e339c565af53932bccf20ec2b07b7964ab6142 (plain)
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
35
36
/*
 * tcapvars.c
 *
 * By Ross Ridge
 * Public Domain
 * 92/02/01 07:30:21
 *
 */

#include "defs.h"
#include <term.h>

#ifdef USE_SCCS_IDS
static const char SCCSid[] = "@(#) mytinfo tcapvars.c 3.2 92/02/01 public domain, By Ross Ridge";
#endif

char PC;
short ospeed;
char *UP, *BC;

void
_figure_termcap() {
#if defined(USE_SGTTY) || defined(USE_TERMIO) || defined(USE_TERMIOS)
#ifdef USE_TERMIOS
	extern speed_t _baud_tbl[];
#else
#ifdef USE_SMALLMEM
	extern unsigned short _baud_tbl[];
#else
	extern long _baud_tbl[];
#endif
#endif
	cur_term->padch = PC;
	cur_term->baudrate = _baud_tbl[ospeed];
#endif
}
OpenPOWER on IntegriCloud