1*22400Sdist /* 2*22400Sdist * Copyright (c) 1983 Regents of the University of California. 3*22400Sdist * All rights reserved. The Berkeley software License Agreement 4*22400Sdist * specifies the terms and conditions for redistribution. 5*22400Sdist */ 6*22400Sdist 716366Skarels #ifndef lint 8*22400Sdist char copyright[] = 9*22400Sdist "@(#) Copyright (c) 1983 Regents of the University of California.\n\ 10*22400Sdist All rights reserved.\n"; 11*22400Sdist #endif not lint 1216357Skarels 13*22400Sdist #ifndef lint 14*22400Sdist static char sccsid[] = "@(#)talk.c 5.1 (Berkeley) 06/06/85"; 15*22400Sdist #endif not lint 16*22400Sdist 1716357Skarels #include "talk.h" 1816357Skarels 1916357Skarels /* 2016357Skarels * talk: A visual form of write. Using sockets, a two way 2116357Skarels * connection is set up between the two people talking. 2216357Skarels * With the aid of curses, the screen is split into two 2316357Skarels * windows, and each users text is added to the window, 2416357Skarels * one character at a time... 2516357Skarels * 2616357Skarels * Written by Kipp Hickman 2716357Skarels * 2816357Skarels * Modified to run under 4.1a by Clem Cole and Peter Moore 2916357Skarels * Modified to run between hosts by Peter Moore, 8/19/82 3016357Skarels * Modified to run under 4.1c by Peter Moore 3/17/83 3116357Skarels */ 3216357Skarels 3316357Skarels main(argc, argv) 3416366Skarels int argc; 3516366Skarels char *argv[]; 3616357Skarels { 3716366Skarels 3816357Skarels get_names(argc, argv); 3916357Skarels init_display(); 4016357Skarels open_ctl(); 4116357Skarels open_sockt(); 4216357Skarels start_msgs(); 4316366Skarels if (!check_local() ) 4416366Skarels invite_remote(); 4516357Skarels end_msgs(); 4616357Skarels set_edit_chars(); 4716357Skarels talk(); 4816357Skarels } 49