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 8 #ifndef lint 9 char copyright[] = 10 "@(#) Copyright (c) 1983, 1985\n\ 11 Regents of the University of California. All rights reserved.\n"; 12 #endif not lint 13 14 #ifndef lint 15 static char sccsid[] = "@(#)talk.c 5.1 (Berkeley) 6/6/85"; 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 int 35 main(argc, argv) 36 int argc; 37 char *argv[]; 38 { 39 40 get_names(argc, argv); 41 init_display(); 42 open_ctl(); 43 open_sockt(); 44 start_msgs(); 45 if (!check_local()) 46 invite_remote(); 47 end_msgs(); 48 set_edit_chars(); 49 talk(); 50 return (0); 51 } 52