Debian Codegraph @

upstream/fedora-44/man1/talk.1

raw
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 .\" from: @(#)talk.1 6.6 (Berkeley) 4/22/91
33 .\" $Id: talk.1,v 1.15 2000/07/30 23:57:02 dholland Exp $
34 .\"
35 .Dd November 24, 1999
36 .Dt TALK 1
37 .Os "Linux NetKit (0.17)"
38 .Sh NAME
39 .Nm talk
40 .Nd talk to another user
41 .Sh SYNOPSIS
42 .Nm talk
43 .Ar person
44 .Op Ar -x
45 .Op Ar ttyname
46 .Sh DESCRIPTION
47 .Nm Talk
48 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. If you wish to talk to a user on
57 another host, then
58 .Ar person
59 is of the form
60 .Ql user@host
61 ( or
62 .Ql host.user
63 or
64 .Ql host!user
65 or
66 .Ql host:user
67 ).
68 .It Ar -x
69 If you wish to talk to a user who has dot character in username, the
70 .Ar -x
71 argument will force
72 .Ql user@host
73 form of the
74 .Ar person
75 and talk will take dots as part of user name.
76 .It Ar ttyname
77 If you wish to talk to a user who is logged in more than once, the
78 .Ar ttyname
79 argument may be used to indicate the appropriate terminal
80 name, where
81 .Ar ttyname
82 is of the form
83 .Ql ttyXX
84 or
85 .Ql pts/X .
86 .El
87 .Pp
88 When first called,
89 .Nm talk
90 contacts the talk daemon on the other user's machine, which sends the
91 message
92 .Bd -literal -offset indent -compact
93 Message from TalkDaemon@his_machine...
94 talk: connection requested by your_name@your_machine.
95 talk: respond with: talk your_name@your_machine
96 .Ed
97 .Pp
98 to that user. At this point, he then replies by typing
99 .Pp
100 .Dl talk \ your_name@your_machine
101 .Pp
102 It doesn't matter from which machine the recipient replies, as
103 long as his login name is the same. Once communication is established,
104 the two parties may type simultaneously; their output will appear
105 in separate windows. Typing control-L (^L)
106 .\".Ql ^L
107 will cause the screen to
108 be reprinted. The erase, kill line, and word erase characters
109 (normally ^H, ^U, and ^W respectively)
110 will behave normally. To exit, just type the interrupt character
111 (normally ^C);
112 .Nm talk
113 then moves the cursor to the bottom of the screen and restores the
114 terminal to its previous state.
115 .Pp
116 As of netkit-ntalk 0.15
117 .Nm talk
118 supports scrollback; use esc-p and esc-n to scroll your window, and
119 ctrl-p and ctrl-n to scroll the other window. These keys are now
120 opposite from the way they were in 0.16; while this will probably be
121 confusing at first, the rationale is that the key combinations with
122 escape are harder to type and should therefore be used to scroll one's
123 own screen, since one needs to do that much less often.
124 .Pp
125 If you do not want to receive talk requests, you may block them using the
126 .Xr mesg 1
127 command. By default, talk requests are normally not blocked.
128 Certain commands, in particular
129 .Xr nroff 1 ,
130 .Xr pine 1 ,
131 and
132 .Xr pr 1 ,
133 may block messages temporarily in order to
134 prevent messy output.
135 .Pp
136 .Sh FILES
137 .Bl -tag -width /var/run/utmp -compact
138 .It Pa /etc/hosts
139 to find the recipient's machine
140 .It Pa /var/run/utmp
141 to find the recipient's tty
142 .El
143 .Sh SEE ALSO
144 .Xr mail 1 ,
145 .Xr mesg 1 ,
146 .Xr who 1 ,
147 .Xr write 1 ,
148 .Xr talkd 8
149 .Sh BUGS
150 The protocol used to communicate with the talk daemon is braindead.
151 .Pp
152 Also, the version of
153 .Xr talk 1
154 released with
155 .Bx 4.2
156 uses a different and even more braindead protocol that is completely
157 incompatible. Some vendor Unixes (particularly those from Sun) have
158 been found to use this old protocol.
159 .Pp
160 Old versions of
161 .Nm talk
162 may have trouble running on machines with more than one IP address,
163 such as machines with dynamic SLIP or PPP connections. This problem is
164 fixed as of netkit-ntalk 0.11, but may affect people you are trying to
165 communicate with.
166 .Sh HISTORY
167 The
168 .Nm
169 command appeared in
170 .Bx 4.2 .