1 /* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 9 static char copyright[] = 10 "@(#) Copyright (c) 1983, 1993\n\ 11 The Regents of the University of California. All rights reserved.\n"; 12 #endif /* not lint */ 13 14 #ifndef lint 15 static char sccsid[] = "@(#)talk.c 8.1 (Berkeley) 06/06/93"; 16 #endif /* not lint */ 17 18 #include "talk.h" 19 20 /* 21 * talk: A visual form of write. Using sockets, a two way 22 * connection is set up between the two people talking. 23 * With the aid of curses, the screen is split into two 24 * windows, and each users text is added to the window, 25 * one character at a time... 26 * 27 * Written by Kipp Hickman 28 * 29 * Modified to run under 4.1a by Clem Cole and Peter Moore 30 * Modified to run between hosts by Peter Moore, 8/19/82 31 * Modified to run under 4.1c by Peter Moore 3/17/83 32 */ 33 34 main(argc, argv) 35 int argc; 36 char *argv[]; 37 { 38 get_names(argc, argv); 39 init_display(); 40 open_ctl(); 41 open_sockt(); 42 start_msgs(); 43 if (!check_local()) 44 invite_remote(); 45 end_msgs(); 46 set_edit_chars(); 47 talk(); 48 } 49