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) 6/6/85 7 */ 8 9 #include <sys/types.h> 10 #include <curses.h> 11 #include <utmp.h> 12 13 #define forever for(;;) 14 15 #define BUF_SIZE 512 16 17 FILE *popen(); 18 int quit(); 19 int sleeper(); 20 21 extern int sockt; 22 extern int curses_initialized; 23 extern int invitation_waiting; 24 25 extern char *current_state; 26 extern int current_line; 27 28 typedef struct xwin { 29 WINDOW *x_win; 30 int x_nlines; 31 int x_ncols; 32 int x_line; 33 int x_col; 34 char kill; 35 char cerase; 36 char werase; 37 } xwin_t; 38 39 extern xwin_t my_win; 40 extern xwin_t his_win; 41 extern WINDOW *line_win; 42