combine find_node and add_node, use db(3) hashing; malloc node and
[unix-history] / usr / src / usr.bin / talk / talk.c
CommitLineData
d0aeaf5a
DF
1/*
2 * Copyright (c) 1983 Regents of the University of California.
f9ac90b4
KB
3 * All rights reserved.
4 *
cb956e54 5 * %sccs.include.redist.c%
d0aeaf5a
DF
6 */
7
8#ifndef lint
9char copyright[] =
10"@(#) Copyright (c) 1983 Regents of the University of California.\n\
11 All rights reserved.\n";
f9ac90b4 12#endif /* not lint */
d0aeaf5a 13
963ce42e 14#ifndef lint
cb956e54 15static char sccsid[] = "@(#)talk.c 5.5 (Berkeley) %G%";
f9ac90b4 16#endif /* not lint */
09777d4e
MK
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
34main(argc, argv)
963ce42e
MK
35 int argc;
36 char *argv[];
09777d4e 37{
963ce42e 38 get_names(argc, argv);
09777d4e 39 init_display();
09777d4e
MK
40 open_ctl();
41 open_sockt();
09777d4e 42 start_msgs();
82439d4b 43 if (!check_local())
963ce42e 44 invite_remote();
09777d4e 45 end_msgs();
09777d4e 46 set_edit_chars();
09777d4e
MK
47 talk();
48}