1 /*- 2 * Copyright (c) 1983, 1985 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)talk.h 5.1 (Berkeley) 6/6/85 8 */ 9 10 #include <sys/types.h> 11 #include <curses.h> 12 #include <utmp.h> 13 14 #define forever for(;;) 15 16 #define BUF_SIZE 512 17 18 FILE *popen(); 19 int quit(); 20 int sleeper(); 21 22 extern int sockt; 23 extern int curses_initialized; 24 extern int invitation_waiting; 25 26 extern char *current_state; 27 extern int current_line; 28 29 typedef struct xwin { 30 WINDOW *x_win; 31 int x_nlines; 32 int x_ncols; 33 int x_line; 34 int x_col; 35 char kill; 36 char cerase; 37 char werase; 38 } xwin_t; 39 40 extern xwin_t my_win; 41 extern xwin_t his_win; 42 extern WINDOW *line_win; 43