xref: /freebsd/usr.bin/talk/talk.1 (revision 29332c0dcee1e80c9fb871e06c3160bd5deb1b44)
1.\" Copyright (c) 1983, 1990, 1993
2.\"	The Regents of the University of California.  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. Neither the name of the University nor the names of its contributors
13.\"    may be used to endorse or promote products derived from this software
14.\"    without specific prior written permission.
15.\"
16.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\"     @(#)talk.1	8.1 (Berkeley) 6/6/93
29.\" $FreeBSD$
30.\"
31.Dd January 21, 2010
32.Dt TALK 1
33.Os
34.Sh NAME
35.Nm talk
36.Nd talk to another user
37.Sh SYNOPSIS
38.Nm
39.Ar person
40.Op Ar ttyname
41.Sh DESCRIPTION
42The
43.Nm
44utility is a visual communication program which copies lines from your
45terminal to that of another user.
46.Pp
47Options available:
48.Bl -tag -width ttyname
49.It Ar person
50If you wish to talk to someone on your own machine, then
51.Ar person
52is just the person's login name.
53If you wish to talk to a user on
54another host, then
55.Ar person
56is of the form
57.Ql user@host
58or
59.Ql host!user
60or
61.Ql host:user .
62.It Ar ttyname
63If you wish to talk to a user who is logged in more than once, the
64.Ar ttyname
65argument may be used to indicate the appropriate terminal
66name, where
67.Ar ttyname
68is of the form
69.Ql ttyXX .
70.El
71.Pp
72When first called,
73.Nm
74sends the message
75.Bd -literal -offset indent -compact
76Message from TalkDaemon@his_machine...
77talk: connection requested by your_name@your_machine.
78talk: respond with: talk your_name@your_machine
79.Ed
80.Pp
81to the user you wish to talk to.
82At this point, the recipient
83of the message should reply by typing
84.Pp
85.Dl talk \ your_name@your_machine
86.Pp
87It does not matter from which machine the recipient replies, as
88long as his login-name is the same.
89Once communication is established,
90the two parties may type simultaneously, with their output appearing
91in separate windows.
92Typing control-L
93.Ql ^L
94will cause the screen to
95be reprinted.
96Typing control-D
97.Ql ^D
98will clear both parts of your screen to be cleared, while
99the control-D character will be sent to the remote side
100(and just displayed by this
101.Nm
102client).
103Your erase, kill, and word kill characters will
104behave normally.
105To exit, just type your interrupt character;
106.Nm
107then moves the cursor to the bottom of the screen and restores the
108terminal to its previous state.
109.Pp
110Permission to talk may be denied or granted by use of the
111.Xr mesg 1
112command.
113At the outset talking is allowed.
114.Sh FILES
115.Bl -tag -width /var/run/utx.active -compact
116.It Pa /etc/hosts
117to find the recipient's machine
118.It Pa /var/run/utx.active
119to find the recipient's tty
120.El
121.Sh SEE ALSO
122.Xr mail 1 ,
123.Xr mesg 1 ,
124.Xr wall 1 ,
125.Xr who 1 ,
126.Xr write 1 ,
127.Xr talkd 8
128.Sh HISTORY
129The
130.Nm
131command appeared in
132.Bx 4.2 .
133.Pp
134In
135.Fx 5.3 ,
136the default behaviour of
137.Nm
138was changed to treat local-to-local talk requests as originating
139and terminating at
140.Em localhost .
141Before this change, it was required that the hostname (as per
142.Xr gethostname 3 )
143resolved to a valid IPv4 address (via
144.Xr gethostbyname 3 ) ,
145making
146.Nm
147unsuitable for use in configurations where
148.Xr talkd 8
149was bound to the loopback interface (normally for security reasons).
150.Sh BUGS
151The version of
152.Nm
153released with
154.Bx 4.3
155uses a protocol that
156is incompatible with the protocol used in the version released with
157.Bx 4.2 .
158.Pp
159Multibyte characters are not recognized.
160