386BSD 0.1 development
[unix-history] / usr / src / usr.bin / talk / talk.1
CommitLineData
3c5a767d
WJ
1.\" Copyright (c) 1983, 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\" must display the following acknowledgement:
14.\" This product includes software developed by the University of
15.\" California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\" may be used to endorse or promote products derived from this software
18.\" without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)talk.1 6.6 (Berkeley) 4/22/91
33.\"
34.Dd April 22, 1991
35.Dt TALK 1
36.Os BSD 4.2
37.Sh NAME
38.Nm talk
39.Nd talk to another user
40.Sh SYNOPSIS
41.Nm talk
42.Ar person
43.Op Ar ttyname
44.Sh DESCRIPTION
45.Nm Talk
46is a visual communication program which copies lines from your
47terminal to that of another user.
48.Pp
49Options available:
50.Bl -tag -width ttyname
51.It Ar person
52If you wish to talk to someone on your own machine, then
53.Ar person
54is just the person's login name. If you wish to talk to a user on
55another host, then
56.Ar person
57is of the form
58.Ql user@host .
59.It Ar ttyname
60If you wish to talk to a user who is logged in more than once, the
61.Ar ttyname
62argument may be used to indicate the appropriate terminal
63name, where
64.Ar ttyname
65is of the form
66.Ql ttyXX .
67.El
68.Pp
69When first called,
70.Nm talk
71sends the message
72.Bd -literal -offset indent -compact
73Message from TalkDaemon@his_machine...
74talk: connection requested by your_name@your_machine.
75talk: respond with: talk your_name@your_machine
76.Ed
77.Pp
78to the user you wish to talk to. At this point, the recipient
79of the message should reply by typing
80.Pp
81.Dl talk \ your_name@your_machine
82.Pp
83It doesn't matter from which machine the recipient replies, as
84long as his login-name is the same. Once communication is established,
85the two parties may type simultaneously, with their output appearing
86in separate windows. Typing control-L
87.Ql ^L
88will cause the screen to
89be reprinted, while your erase, kill, and word kill characters will
90behave normally. To exit, just type your interrupt character;
91.Nm talk
92then moves the cursor to the bottom of the screen and restores the
93terminal to its previous state.
94.Pp
95Permission to talk may be denied or granted by use of the
96.Xr mesg 1
97command. At the outset talking is allowed. Certain commands, in
98particular
99.Xr nroff 1
100and
101.Xr pr 1 ,
102disallow messages in order to
103prevent messy output.
104.Pp
105.Sh FILES
106.Bl -tag -width /var/run/utmp -compact
107.It Pa /etc/hosts
108to find the recipient's machine
109.It Pa /var/run/utmp
110to find the recipient's tty
111.El
112.Sh SEE ALSO
113.Xr mail 1 ,
114.Xr mesg 1 ,
115.Xr who 1 ,
116.Xr write 1
117.Sh BUGS
118The version of
119.Xr talk 1
120released with
121.Bx 4.3
122uses a protocol that
123is incompatible with the protocol used in the version released with
124.Bx 4.2 .
125.Sh HISTORY
126The
127.Nm
128command appeared in
129.Bx 4.2 .