]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - usr.bin/talk/talk.1
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / usr.bin / talk / talk.1
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. 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      8.1 (Berkeley) 6/6/93
33 .\" $FreeBSD$
34 .\"
35 .Dd July 3, 2004
36 .Dt TALK 1
37 .Os
38 .Sh NAME
39 .Nm talk
40 .Nd talk to another user
41 .Sh SYNOPSIS
42 .Nm
43 .Ar person
44 .Op Ar ttyname
45 .Sh DESCRIPTION
46 The
47 .Nm
48 utility is a visual communication program which copies lines from your
49 terminal to that of another user.
50 .Pp
51 Options available:
52 .Bl -tag -width ttyname
53 .It Ar person
54 If you wish to talk to someone on your own machine, then
55 .Ar person
56 is just the person's login name.
57 If you wish to talk to a user on
58 another host, then
59 .Ar person
60 is of the form
61 .Ql user@host
62 or
63 .Ql host!user
64 or
65 .Ql host:user .
66 .It Ar ttyname
67 If you wish to talk to a user who is logged in more than once, the
68 .Ar ttyname
69 argument may be used to indicate the appropriate terminal
70 name, where
71 .Ar ttyname
72 is of the form
73 .Ql ttyXX .
74 .El
75 .Pp
76 When first called,
77 .Nm
78 sends the message
79 .Bd -literal -offset indent -compact
80 Message from TalkDaemon@his_machine...
81 talk: connection requested by your_name@your_machine.
82 talk: respond with: talk your_name@your_machine
83 .Ed
84 .Pp
85 to the user you wish to talk to.
86 At this point, the recipient
87 of the message should reply by typing
88 .Pp
89 .Dl talk \ your_name@your_machine
90 .Pp
91 It does not matter from which machine the recipient replies, as
92 long as his login-name is the same.
93 Once communication is established,
94 the two parties may type simultaneously, with their output appearing
95 in separate windows.
96 Typing control-L
97 .Ql ^L
98 will cause the screen to
99 be reprinted.
100 Typing control-D
101 .Ql ^D
102 will clear both parts of your screen to be cleared, while
103 the control-D character will be sent to the remote side
104 (and just displayed by this
105 .Nm
106 client).
107 Your erase, kill, and word kill characters will
108 behave normally.
109 To exit, just type your interrupt character;
110 .Nm
111 then moves the cursor to the bottom of the screen and restores the
112 terminal to its previous state.
113 .Pp
114 Permission to talk may be denied or granted by use of the
115 .Xr mesg 1
116 command.
117 At the outset talking is allowed.
118 .Sh FILES
119 .Bl -tag -width /var/run/utmp -compact
120 .It Pa /etc/hosts
121 to find the recipient's machine
122 .It Pa /var/run/utmp
123 to find the recipient's tty
124 .El
125 .Sh SEE ALSO
126 .Xr mail 1 ,
127 .Xr mesg 1 ,
128 .Xr wall 1 ,
129 .Xr who 1 ,
130 .Xr write 1 ,
131 .Xr talkd 8
132 .Sh HISTORY
133 The
134 .Nm
135 command appeared in
136 .Bx 4.2 .
137 .Pp
138 In
139 .Fx 5.3 ,
140 the default behaviour of
141 .Nm
142 was changed to treat local-to-local talk requests as originating
143 and terminating at
144 .Em localhost .
145 Before this change, it was required that the hostname (as per
146 .Xr gethostname 3 )
147 resolved to a valid IPv4 address (via
148 .Xr gethostbyname 3 ) ,
149 making
150 .Nm
151 unsuitable for use in configurations where
152 .Xr talkd 8
153 was bound to the loopback interface (normally for security reasons).
154 .Sh BUGS
155 The version of
156 .Nm
157 released with
158 .Bx 4.3
159 uses a protocol that
160 is incompatible with the protocol used in the version released with
161 .Bx 4.2 .
162 .Pp
163 Multibyte characters are not recognized.