xref: /original-bsd/usr.bin/talk/talk.h (revision 57124d5e)
1 /*
2  * Copyright (c) 1983 Regents of the University of California.
3  * All rights reserved.  The Berkeley software License Agreement
4  * specifies the terms and conditions for redistribution.
5  *
6  *	@(#)talk.h	5.1 (Berkeley) 06/06/85
7  */
8 
9 #include <curses.h>
10 #include <utmp.h>
11 
12 #define forever		for(;;)
13 
14 #define BUF_SIZE	512
15 
16 FILE	*popen();
17 int	quit();
18 int	sleeper();
19 
20 extern	int sockt;
21 extern	int curses_initialized;
22 extern	int invitation_waiting;
23 
24 extern	char *current_state;
25 extern	int current_line;
26 
27 typedef struct xwin {
28 	WINDOW	*x_win;
29 	int	x_nlines;
30 	int	x_ncols;
31 	int	x_line;
32 	int	x_col;
33 	char	kill;
34 	char	cerase;
35 	char	werase;
36 } xwin_t;
37 
38 extern	xwin_t my_win;
39 extern	xwin_t his_win;
40 extern	WINDOW *line_win;
41