xref: /csrg-svn/usr.bin/talk/talk.c (revision 62305)
122400Sdist /*
2*62305Sbostic  * Copyright (c) 1983, 1993
3*62305Sbostic  *	The Regents of the University of California.  All rights reserved.
434373Sbostic  *
542770Sbostic  * %sccs.include.redist.c%
622400Sdist  */
722400Sdist 
816366Skarels #ifndef lint
9*62305Sbostic static char copyright[] =
10*62305Sbostic "@(#) Copyright (c) 1983, 1993\n\
11*62305Sbostic 	The Regents of the University of California.  All rights reserved.\n";
1234373Sbostic #endif /* not lint */
1316357Skarels 
1422400Sdist #ifndef lint
15*62305Sbostic static char sccsid[] = "@(#)talk.c	8.1 (Berkeley) 06/06/93";
1634373Sbostic #endif /* not lint */
1722400Sdist 
1816357Skarels #include "talk.h"
1916357Skarels 
2016357Skarels /*
2116357Skarels  * talk:	A visual form of write. Using sockets, a two way
2216357Skarels  *		connection is set up between the two people talking.
2316357Skarels  *		With the aid of curses, the screen is split into two
2416357Skarels  *		windows, and each users text is added to the window,
2516357Skarels  *		one character at a time...
2616357Skarels  *
2716357Skarels  *		Written by Kipp Hickman
2816357Skarels  *
2916357Skarels  *		Modified to run under 4.1a by Clem Cole and Peter Moore
3016357Skarels  *		Modified to run between hosts by Peter Moore, 8/19/82
3116357Skarels  *		Modified to run under 4.1c by Peter Moore 3/17/83
3216357Skarels  */
3316357Skarels 
main(argc,argv)3416357Skarels main(argc, argv)
3516366Skarels 	int argc;
3616366Skarels 	char *argv[];
3716357Skarels {
3816357Skarels 	get_names(argc, argv);
3916357Skarels 	init_display();
4016357Skarels 	open_ctl();
4116357Skarels 	open_sockt();
4216357Skarels 	start_msgs();
4334363Sedward 	if (!check_local())
4416366Skarels 		invite_remote();
4516357Skarels 	end_msgs();
4616357Skarels 	set_edit_chars();
4716357Skarels 	talk();
4816357Skarels }
49