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