xref: /original-bsd/old/talk/talk/talk.c (revision e58c8952)
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 main(argc, argv)
35 	int argc;
36 	char *argv[];
37 {
38 
39 	get_names(argc, argv);
40 	init_display();
41 	open_ctl();
42 	open_sockt();
43 	start_msgs();
44 	if (!check_local() )
45 		invite_remote();
46 	end_msgs();
47 	set_edit_chars();
48 	talk();
49 }
50