1 #ifndef lint 2 static char sccsid[] = "@(#)talk.c 1.2 (Berkeley) 04/11/84"; 3 #endif 4 5 #include "talk.h" 6 7 /* 8 * talk: A visual form of write. Using sockets, a two way 9 * connection is set up between the two people talking. 10 * With the aid of curses, the screen is split into two 11 * windows, and each users text is added to the window, 12 * one character at a time... 13 * 14 * Written by Kipp Hickman 15 * 16 * Modified to run under 4.1a by Clem Cole and Peter Moore 17 * Modified to run between hosts by Peter Moore, 8/19/82 18 * Modified to run under 4.1c by Peter Moore 3/17/83 19 */ 20 21 main(argc, argv) 22 int argc; 23 char *argv[]; 24 { 25 26 get_names(argc, argv); 27 init_display(); 28 open_ctl(); 29 open_sockt(); 30 start_msgs(); 31 if (!check_local() ) 32 invite_remote(); 33 end_msgs(); 34 set_edit_chars(); 35 talk(); 36 } 37