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 extern int sockt; 19 extern int curses_initialized; 20 extern int invitation_waiting; 21 22 extern char *current_state; 23 extern int current_line; 24 25 typedef struct xwin { 26 WINDOW *x_win; 27 int x_nlines; 28 int x_ncols; 29 int x_line; 30 int x_col; 31 char kill; 32 char cerase; 33 char werase; 34 } xwin_t; 35 36 extern xwin_t my_win; 37 extern xwin_t his_win; 38 extern WINDOW *line_win; 39 40 void announce_invite __P((void)); 41 int check_local __P((void)); 42 void display __P((xwin_t *, char *, int)); 43 void end_msgs __P((void)); 44 void get_addrs __P((char *, char *)); 45 void get_names __P((int, char **)); 46 void init_display __P((void)); 47 void invite_remote __P((void)); 48 void message __P((const char *)); 49 void open_ctl __P((void)); 50 void open_sockt __P((void)); 51 __dead void p_error __P((const char *)) __attribute__((volatile)); 52 __dead void quit __P((void)) __attribute__((volatile)); 53 void send_delete __P((void)); 54 void set_edit_chars __P((void)); 55 void start_msgs __P((void)); 56 void talk __P((void)); 57