Debian Codegraph @

upstream/opensuse-tumbleweed/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 [-p encoding]
44 .Ar person
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 encoding
53 .It Ar encoding
54 The charset encoding sent by your peer (i.e. UTF-8, ISO-8859-1,
55 EUC-JP, whatever). Default is some guesswork based on the incoming
56 data and your current locate.
57 .It Ar person
58 If you wish to talk to someone on your own machine, then
59 .Ar person
60 is just the person's login name. If you wish to talk to a user on
61 another host, then
62 .Ar person
63 is of the form
64 .Ql user@host .
65 .It Ar ttyname
66 If you wish to talk to a user who is logged in more than once, the
67 .Ar ttyname
68 argument may be used to indicate the appropriate terminal
69 name, where
70 .Ar ttyname
71 is of the form
72 .Ql ttyXX
73 or
74 .Ql pts/X .
75 .El
76 .Pp
77 When first called,
78 .Nm talk
79 contacts the talk daemon on the other user's machine, which sends the
80 message
81 .Bd -literal -offset indent -compact
82 Message from TalkDaemon@his_machine...
83 talk: connection requested by your_name@your_machine.
84 talk: respond with: talk your_name@your_machine
85 .Ed
86 .Pp
87 to that user. At this point, he then replies by typing
88 .Pp
89 .Dl talk \ your_name@your_machine
90 .Pp
91 It doesn't matter from which machine the recipient replies, as
92 long as his login name is the same. Once communication is established,
93 the two parties may type simultaneously; their output will appear
94 in separate windows. Typing control-L (^L)
95 .\".Ql ^L
96 will cause the screen to
97 be reprinted. The erase, kill line, and word erase characters
98 (normally ^H, ^U, and ^W respectively)
99 will behave normally. To exit, just type the interrupt character
100 (normally ^C);
101 .Nm talk
102 then moves the cursor to the bottom of the screen and restores the
103 terminal to its previous state.
104 .Pp
105 As of netkit-ntalk 0.15
106 .Nm talk
107 supports scrollback; use esc-p and esc-n to scroll your window, and
108 ctrl-p and ctrl-n to scroll the other window. These keys are now
109 opposite from the way they were in 0.16; while this will probably be
110 confusing at first, the rationale is that the key combinations with
111 escape are harder to type and should therefore be used to scroll one's
112 own screen, since one needs to do that much less often.
113 .Pp
114 If you do not want to receive talk requests, you may block them using the
115 .Xr mesg 1
116 command. By default, talk requests are normally not blocked.
117 Certain commands, in particular
118 .Xr nroff 1 ,
119 .Xr pine 1 ,
120 and
121 .Xr pr 1 ,
122 may block messages temporarily in order to
123 prevent messy output.
124 .Pp
125 .Sh FILES
126 .Bl -tag -width /var/run/utmp -compact
127 .It Pa /etc/hosts
128 to find the recipient's machine
129 .It Pa /var/run/utmp
130 to find the recipient's tty
131 .El
132 .Sh SEE ALSO
133 .Xr mail 1 ,
134 .Xr mesg 1 ,
135 .Xr who 1 ,
136 .Xr write 1 ,
137 .Xr talkd 8
138 .Sh BUGS
139 The protocol used to communicate with the talk daemon is braindead.
140 .Pp
141 Also, the version of
142 .Xr talk 1
143 released with
144 .Bx 4.2
145 uses a different and even more braindead protocol that is completely
146 incompatible. Some vendor Unixes (particularly those from Sun) have
147 been found to use this old protocol.
148 .Pp
149 Old versions of
150 .Nm talk
151 may have trouble running on machines with more than one IP address,
152 such as machines with dynamic SLIP or PPP connections. This problem is
153 fixed as of netkit-ntalk 0.11, but may affect people you are trying to
154 communicate with.
155 .Sh HISTORY
156 The
157 .Nm
158 command appeared in
159 .Bx 4.2 .