xref: /csrg-svn/usr.bin/talk/talk.h (revision 34373)
122385Sdist /*
222385Sdist  * Copyright (c) 1983 Regents of the University of California.
3*34373Sbostic  * All rights reserved.
422385Sdist  *
5*34373Sbostic  * Redistribution and use in source and binary forms are permitted
6*34373Sbostic  * provided that this notice is preserved and that due credit is given
7*34373Sbostic  * to the University of California at Berkeley. The name of the University
8*34373Sbostic  * may not be used to endorse or promote products derived from this
9*34373Sbostic  * software without specific prior written permission. This software
10*34373Sbostic  * is provided ``as is'' without express or implied warranty.
11*34373Sbostic  *
12*34373Sbostic  *	@(#)talk.h	5.3 (Berkeley) 05/20/88
1322385Sdist  */
1416358Skarels 
1516358Skarels #include <curses.h>
1616358Skarels #include <utmp.h>
1716358Skarels 
1816366Skarels #define forever		for(;;)
1916358Skarels 
2016366Skarels int	quit();
2116358Skarels 
2216366Skarels extern	int sockt;
2316366Skarels extern	int curses_initialized;
2416366Skarels extern	int invitation_waiting;
2516358Skarels 
2616366Skarels extern	char *current_state;
2716366Skarels extern	int current_line;
2816358Skarels 
2916358Skarels typedef struct xwin {
3016366Skarels 	WINDOW	*x_win;
3116366Skarels 	int	x_nlines;
3216366Skarels 	int	x_ncols;
3316366Skarels 	int	x_line;
3416366Skarels 	int	x_col;
3516366Skarels 	char	kill;
3616366Skarels 	char	cerase;
3716366Skarels 	char	werase;
3816358Skarels } xwin_t;
3916358Skarels 
4016366Skarels extern	xwin_t my_win;
4116366Skarels extern	xwin_t his_win;
4216366Skarels extern	WINDOW *line_win;
43