122400Sdist /* 222400Sdist * Copyright (c) 1983 Regents of the University of California. 322400Sdist * All rights reserved. The Berkeley software License Agreement 422400Sdist * specifies the terms and conditions for redistribution. 522400Sdist */ 622400Sdist 716366Skarels #ifndef lint 822400Sdist char copyright[] = 922400Sdist "@(#) Copyright (c) 1983 Regents of the University of California.\n\ 1022400Sdist All rights reserved.\n"; 1122400Sdist #endif not lint 1216357Skarels 1322400Sdist #ifndef lint 14*34363Sedward static char sccsid[] = "@(#)talk.c 5.2 (Berkeley) 05/20/88"; 1522400Sdist #endif not lint 1622400Sdist 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 { 3716357Skarels get_names(argc, argv); 3816357Skarels init_display(); 3916357Skarels open_ctl(); 4016357Skarels open_sockt(); 4116357Skarels start_msgs(); 42*34363Sedward if (!check_local()) 4316366Skarels invite_remote(); 4416357Skarels end_msgs(); 4516357Skarels set_edit_chars(); 4616357Skarels talk(); 4716357Skarels } 48