Commit | Line | Data |
---|---|---|
963ce42e MK |
1 | #ifndef lint |
2 | static char sccsid[] = "@(#)talk.c 1.2 (Berkeley) %G%"; | |
3 | #endif | |
09777d4e MK |
4 | |
5 | #include "talk.h" | |
6 | ||
7 | /* | |
8 | * talk: A visual form of write. Using sockets, a two way | |
9 | * connection is set up between the two people talking. | |
10 | * With the aid of curses, the screen is split into two | |
11 | * windows, and each users text is added to the window, | |
12 | * one character at a time... | |
13 | * | |
14 | * Written by Kipp Hickman | |
15 | * | |
16 | * Modified to run under 4.1a by Clem Cole and Peter Moore | |
17 | * Modified to run between hosts by Peter Moore, 8/19/82 | |
18 | * Modified to run under 4.1c by Peter Moore 3/17/83 | |
19 | */ | |
20 | ||
21 | main(argc, argv) | |
963ce42e MK |
22 | int argc; |
23 | char *argv[]; | |
09777d4e | 24 | { |
09777d4e | 25 | |
963ce42e | 26 | get_names(argc, argv); |
09777d4e | 27 | init_display(); |
09777d4e MK |
28 | open_ctl(); |
29 | open_sockt(); | |
09777d4e | 30 | start_msgs(); |
963ce42e MK |
31 | if (!check_local() ) |
32 | invite_remote(); | |
09777d4e | 33 | end_msgs(); |
09777d4e | 34 | set_edit_chars(); |
09777d4e MK |
35 | talk(); |
36 | } |