Add copyright
[unix-history] / usr / src / usr.bin / talk / talk.c
CommitLineData
d0aeaf5a
DF
1/*
2 * Copyright (c) 1983 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
7#ifndef lint
8char copyright[] =
9"@(#) Copyright (c) 1983 Regents of the University of California.\n\
10 All rights reserved.\n";
11#endif not lint
12
963ce42e 13#ifndef lint
d0aeaf5a
DF
14static char sccsid[] = "@(#)talk.c 5.1 (Berkeley) %G%";
15#endif not lint
09777d4e
MK
16
17#include "talk.h"
18
19/*
20 * talk: A visual form of write. Using sockets, a two way
21 * connection is set up between the two people talking.
22 * With the aid of curses, the screen is split into two
23 * windows, and each users text is added to the window,
24 * one character at a time...
25 *
26 * Written by Kipp Hickman
27 *
28 * Modified to run under 4.1a by Clem Cole and Peter Moore
29 * Modified to run between hosts by Peter Moore, 8/19/82
30 * Modified to run under 4.1c by Peter Moore 3/17/83
31 */
32
33main(argc, argv)
963ce42e
MK
34 int argc;
35 char *argv[];
09777d4e 36{
09777d4e 37
963ce42e 38 get_names(argc, argv);
09777d4e 39 init_display();
09777d4e
MK
40 open_ctl();
41 open_sockt();
09777d4e 42 start_msgs();
963ce42e
MK
43 if (!check_local() )
44 invite_remote();
09777d4e 45 end_msgs();
09777d4e 46 set_edit_chars();
09777d4e
MK
47 talk();
48}