Merge commit 'dc97a43d4a70c8773a619f11b95b07a787f6f5b7' into merges
[unleashed.git] / share / man / man1 / talk.1
blob98665b743c7860c1915092e1f1d281b94e108310
1 '\" te
2 .\" Copyright 1989 AT&T
3 .\" Copyright (c) 2000, Sun Microsystems, Inc.  All Rights Reserved
4 .\" Portions Copyright (c) 1992, X/Open Company Limited  All Rights Reserved
5 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
6 .\" http://www.opengroup.org/bookstore/.
7 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
8 .\"  This notice shall appear on any product containing this material.
9 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
10 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
11 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
12 .TH TALK 1 "Nov 6, 2000"
13 .SH NAME
14 talk \- talk to another user
15 .SH SYNOPSIS
16 .LP
17 .nf
18 \fBtalk\fR \fIaddress\fR [\fIterminal\fR]
19 .fi
21 .SH DESCRIPTION
22 .sp
23 .LP
24 The \fBtalk\fR utility is a two-way, screen-oriented communication program.
25 .sp
26 .LP
27 When first invoked, \fBtalk\fR sends a message similar to:
28 .sp
29 .in +2
30 .nf
31 Message from TalkDaemon@ \fIher_machine\fR at \fItime .\|.\|.\fR
32 talk: connection requested by \fIyour_address\fR
33 talk: respond with: talk \fIyour_address\fR
34 .fi
35 .in -2
36 .sp
38 .sp
39 .LP
40 to the specified \fIaddress\fR. At this point, the recipient of the message can
41 reply by typing:
42 .sp
43 .in +2
44 .nf
45 talk \fIyour_address\fR
46 .fi
47 .in -2
48 .sp
50 .sp
51 .LP
52 Once communication is established, the two parties can type simultaneously,
53 with their output displayed in separate regions of the screen. Characters are
54 processed as follows:
55 .RS +4
56 .TP
57 .ie t \(bu
58 .el o
59 Typing the alert character will alert the recipient's terminal.
60 .RE
61 .RS +4
62 .TP
63 .ie t \(bu
64 .el o
65 Typing Control-L will cause the sender's screen regions to be refreshed.
66 .RE
67 .RS +4
68 .TP
69 .ie t \(bu
70 .el o
71 Typing the erase and kill characters will affect the sender's terminal in the
72 manner described by the \fBtermios\fR(3C) interface.
73 .RE
74 .RS +4
75 .TP
76 .ie t \(bu
77 .el o
78 Typing the interrupt or end-of-file (\fBEOF\fR) characters will terminate the
79 local \fBtalk\fR utility. Once the \fBtalk\fR session has been terminated on
80 one side, the other side of the \fBtalk\fR session will be notified that the
81 \fBtalk\fR session has been terminated and will be able to do nothing except
82 exit.
83 .RE
84 .RS +4
85 .TP
86 .ie t \(bu
87 .el o
88 Typing characters from \fBLC_CTYPE\fR classifications \fBprint\fR or
89 \fBspace\fR will cause those characters to be sent to the recipient's terminal.
90 .RE
91 .RS +4
92 .TP
93 .ie t \(bu
94 .el o
95 When and only when the \fBstty\fR \fBiexten\fR local mode is enabled,
96 additional special control characters and multi-byte or single-byte characters
97 are processed as printable characters if their wide character equivalents are
98 printable.
99 .RE
100 .RS +4
102 .ie t \(bu
103 .el o
104 Typing other non-printable characters will cause them to be written to the
105 recipient's terminal as follows: control characters will appear as a caret
106 (\|\fB^\fR\|) followed by the appropriate \fBASCII\fR character, and characters
107 with the high-order bit set will appear in "meta" notation. For example,
108 `\fB\e003\fR\&' is displayed as `\fB^C\fR' and `\fB\e372\fR\&' as
109 `\fBM\(miz\fR'.
113 Permission to be a recipient of a \fBtalk\fR message can be denied or granted
114 by use of the \fBmesg\fR(1) utility. However, a user's privilege may further
115 constrain the domain of accessibility of other users' terminals. Certain
116 commands, such as \fBpr\fR(1), disallow messages in order to prevent
117 interference with their output. \fBtalk\fR will fail when the user lacks the
118 appropriate privileges to perform the requested action.
121 Certain block-mode terminals do not have all the capabilities necessary to
122 support the simultaneous exchange of messages required for \fBtalk\fR. When
123 this type of exchange cannot be supported on such terminals, the implementation
124 may support an exchange with reduced levels of simultaneous interaction or it
125 may report an error describing the terminal-related deficiency.
126 .SH OPERANDS
129 The following operands are supported:
131 .ne 2
133 \fB\fIaddress\fR\fR
135 .RS 12n
136 The recipient of the \fBtalk\fR session. One form of \fIaddress\fR is the
137 \fIusername\fR, as returned by the \fBwho\fR(1) utility. If you wish to talk to
138 someone on your own machine, then \fIusername\fR is just the person's login
139 name. If you wish to talk to a user on another host, then \fIusername\fR is one
140 of the following forms:
142 .in +2
144 \fIhost\fR\fB!\fR\fIuser\fR
145 \fIhost\fR\fB\&.\fR\fIuser\fR
146 \fIhost\fR\fB:\fR\fIuser\fR
147 \fIuser\fR\fB@\fR\fIhost\fR
149 .in -2
152 although \fIuser\fR\fB@\fR\fIhost\fR is perhaps preferred.
156 .ne 2
158 \fB\fIterminal\fR\fR
160 .RS 12n
161 If the recipient is logged in more than once, \fIterminal\fR can be used to
162 indicate the appropriate terminal name. If \fIterminal\fR is not specified, the
163 \fBtalk\fR message will be displayed on one or more accessible terminals in use
164 by the recipient. The format of \fIterminal\fR will be the same as that
165 returned by  \fBwho\fR.
168 .SH ENVIRONMENT VARIABLES
171 See \fBenviron\fR(5) for descriptions of the following environment variables
172 that affect the execution of \fBtalk\fR: \fBLANG\fR, \fBLC_ALL\fR,
173 \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR.
175 .ne 2
177 \fB\fBTERM\fR\fR
179 .RS 8n
180 Determine the name of the invoker's terminal type.  If this variable is unset
181 or null, an unspecified terminal type will be used.
184 .SH EXIT STATUS
187 The following exit values are returned:
189 .ne 2
191 \fB\fB0\fR\fR
193 .RS 6n
194 Successful completion.
198 .ne 2
200 \fB\fB>0\fR\fR
202 .RS 6n
203 An error occurred, or \fBtalk\fR was invoked on a terminal incapable of
204 supporting it.
207 .SH FILES
209 .ne 2
211 \fB\fB/etc/hosts\fR\fR
213 .RS 18n
214 host name database
218 .ne 2
220 \fB\fB/var/adm/utmpx\fR\fR
222 .RS 18n
223 user and accounting information for \fBtalk\fR
226 .SH ATTRIBUTES
229 See \fBattributes\fR(5) for descriptions of the following attributes:
234 box;
235 c | c
236 l | l .
237 ATTRIBUTE TYPE  ATTRIBUTE VALUE
239 Interface Stability     Standard
242 .SH SEE ALSO
245 \fBmail\fR(1), \fBmesg\fR(1), \fBpr\fR(1), \fBstty\fR(1), \fBwho\fR(1),
246 \fBwrite\fR(1), \fBtermios\fR(3C), \fBattributes\fR(5), \fBenviron\fR(5),
247 \fBstandards\fR(5)
248 .SH NOTES
251 Typing Control-L redraws the screen, while the erase, kill, and word kill
252 characters will work in \fBtalk\fR as normal. To exit, type an interrupt
253 character. \fBtalk\fR then moves the cursor to the bottom of the screen and
254 restores the terminal to its previous state.